Add sway support to powermenu

Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
pull/158/head
Ayush Singh 8 months ago
parent 04506406b4
commit 5fd5fd2fed
No known key found for this signature in database
GPG Key ID: 05CEF5C789E55A74

@ -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)

Loading…
Cancel
Save