This commit is contained in:
Ayush 2024-10-06 06:24:43 +02:00 committed by GitHub
commit 0c3c4bb105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,6 +78,8 @@ run_cmd() {
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'sway' ]]; then
swaymsg exit
fi
fi
else
@ -99,6 +101,8 @@ case ${chosen} in
betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi
;;
$suspend)