From c495293fb78b83ee8bab8ceaa9efb794d08a1667 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sun, 22 Mar 2020 12:34:05 +0000 Subject: [PATCH] i3/powermenu: exit systemd session on logout --- .config/i3/powermenu.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.config/i3/powermenu.sh b/.config/i3/powermenu.sh index 1f4692a..8085178 100755 --- a/.config/i3/powermenu.sh +++ b/.config/i3/powermenu.sh @@ -4,7 +4,7 @@ option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep case $option in lock) dm-tool switch-to-greeter;; - logout) i3-msg exit;; + logout) systemctl --user exit;; sleep) systemctl suspend;; hibernate) systemctl hibernate;; power\ off) systemctl poweroff;; @@ -14,5 +14,3 @@ case $option in sudo efibootmgr -n $windows reboot;; esac - -exit 0