From 40133a2fcfa71270ca165999b932f52989090712 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 3 Oct 2023 16:28:39 +0900 Subject: feat(home/gui): sway: make suspend and logout work on locked state --- home/profiles/gui/config/sway.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'home/profiles/gui/config') diff --git a/home/profiles/gui/config/sway.nix b/home/profiles/gui/config/sway.nix index 907681a..3f7307d 100644 --- a/home/profiles/gui/config/sway.nix +++ b/home/profiles/gui/config/sway.nix @@ -165,8 +165,9 @@ in # Session control bindsym $mod+q exec loginctl lock-session - bindsym $mod+Ctrl+q exec pkill -USR1 swayidle bindsym $mod+Shift+q exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit' + bindsym --locked $mod+Shift+q exec loginctl terminate-session self + bindsym --locked $mod+Ctrl+q exec pkill -USR1 swayidle # Power bindsym XF86PowerOff exec swaynag -t error -m 'Confirm poweroff?' -b 'Confirm' 'shutdown now' -- cgit 1.4.1