about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--home/profiles/gui/config/sway.nix3
1 files changed, 2 insertions, 1 deletions
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'