diff options
author | Adam M. Stück <adam@adast.xyz> | 2023-02-04 00:06:11 +0100 |
---|---|---|
committer | Adam M. Stück <adam@adast.xyz> | 2023-02-04 00:12:53 +0100 |
commit | 3a1b3ccf9259a78afe3524daa08d7cbd25ed68cc (patch) | |
tree | b141a8a4b6f4c25fb7a208492792a4761e06181a /.local/bin | |
parent | 2797b1def9d253ed7d083336513f369435219b90 (diff) |
scripts: working logout command
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/dmenu/dm-power | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenu/dm-power b/.local/bin/dmenu/dm-power index 2202bc4..fb856bb 100755 --- a/.local/bin/dmenu/dm-power +++ b/.local/bin/dmenu/dm-power @@ -5,7 +5,7 @@ DMENU_CMD="dmenu -p 'sys:' -l 8 -b -i -fn 'JetBrainsMono Nerd Font:size=11'" case "$(printf "Shutdown\nRestart\nLogout\nSuspend\nLock" | eval "$DMENU_CMD")" in Shutdown) exec systemctl poweroff;; Restart) exec systemctl reboot;; - Logout) kill -HUP "$XDG_SESSION_PID";; + Logout) exec loginctl terminate-session ${XDG_SESSION_ID-};; Suspend) exec systemctl suspend;; Lock) exec systemctl --user start lock.target;; esac |