Compare commits

...

2 Commits

Author SHA1 Message Date
Ayush
8483a9887c
Merge 5fd5fd2fed into dce10e92b6 2024-09-28 00:40:18 -03:00
Ayush Singh
5fd5fd2fed
Add sway support to powermenu
Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
2023-10-19 00:46:49 +05:30

View File

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