about summary refs log tree commit diff
path: root/home/profiles/gui
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-03 16:28:39 +0900
committersefidel <contact@sefidel.net>2023-10-03 16:28:39 +0900
commit40133a2fcfa71270ca165999b932f52989090712 (patch)
tree59f76a35b4fb95b161c4273c7da88de33e906b9b /home/profiles/gui
parent1c6d6ab52802e18bac8a5511a4195d1de905a1d1 (diff)
downloadnixrc-40133a2fcfa71270ca165999b932f52989090712.tar.gz
nixrc-40133a2fcfa71270ca165999b932f52989090712.zip
feat(home/gui): sway: make suspend and logout work on locked state
Diffstat (limited to 'home/profiles/gui')
-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'