mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
i3/powermenu: exit systemd session on logout
This commit is contained in:
parent
9aeeee58d0
commit
c495293fb7
@ -4,7 +4,7 @@ option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep
|
|||||||
|
|
||||||
case $option in
|
case $option in
|
||||||
lock) dm-tool switch-to-greeter;;
|
lock) dm-tool switch-to-greeter;;
|
||||||
logout) i3-msg exit;;
|
logout) systemctl --user exit;;
|
||||||
sleep) systemctl suspend;;
|
sleep) systemctl suspend;;
|
||||||
hibernate) systemctl hibernate;;
|
hibernate) systemctl hibernate;;
|
||||||
power\ off) systemctl poweroff;;
|
power\ off) systemctl poweroff;;
|
||||||
@ -14,5 +14,3 @@ case $option in
|
|||||||
sudo efibootmgr -n $windows
|
sudo efibootmgr -n $windows
|
||||||
reboot;;
|
reboot;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit 0
|
|
||||||
|
Loading…
Reference in New Issue
Block a user