From 3a1b3ccf9259a78afe3524daa08d7cbd25ed68cc Mon Sep 17 00:00:00 2001 From: "Adam M. Stück" Date: Sat, 4 Feb 2023 00:06:11 +0100 Subject: scripts: working logout command --- .local/bin/dmenu/dm-power | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/dmenu') 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 -- cgit v1.2.3-70-g09d2