feat: small chages

This commit is contained in:
2024-10-03 00:41:44 +04:00
parent d9fe7cdc20
commit 43b449f792
4 changed files with 10 additions and 7 deletions

View File

@@ -63,7 +63,7 @@ run_cmd() {
elif [[ $1 == '--reboot' ]]; then
loginctl reboot
elif [[ $1 == '--suspend' ]]; then
loginctl suspend
loginctl suspend && betterlockscreen -l blur
elif [[ $1 == '--logout' ]]; then
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
openbox --exit
@@ -91,7 +91,7 @@ case ${chosen} in
;;
$lock)
if [[ -x '/usr/bin/betterlockscreen' ]]; then
betterlockscreen -l
betterlockscreen -l blur
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
fi
@@ -100,6 +100,6 @@ case ${chosen} in
run_cmd --suspend
;;
$logout)
run_cmd --logout
run_cmd --logout & pkill pipewire & pkill pipewire-pulse
;;
esac