From 5fd5fd2feda78ed6d9cc45df236a4e50112e4e76 Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Thu, 19 Oct 2023 00:46:37 +0530 Subject: [PATCH] Add sway support to powermenu Signed-off-by: Ayush Singh --- files/powermenu/type-1/powermenu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/powermenu/type-1/powermenu.sh b/files/powermenu/type-1/powermenu.sh index dd978af..dddbc93 100755 --- a/files/powermenu/type-1/powermenu.sh +++ b/files/powermenu/type-1/powermenu.sh @@ -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)