diff options
author | sefidel <contact@sefidel.net> | 2023-10-03 16:28:39 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-10-03 16:28:39 +0900 |
commit | 40133a2fcfa71270ca165999b932f52989090712 (patch) | |
tree | 59f76a35b4fb95b161c4273c7da88de33e906b9b /home/profiles | |
parent | 1c6d6ab52802e18bac8a5511a4195d1de905a1d1 (diff) | |
download | nixrc-40133a2fcfa71270ca165999b932f52989090712.tar.gz nixrc-40133a2fcfa71270ca165999b932f52989090712.zip |
feat(home/gui): sway: make suspend and logout work on locked state
Diffstat (limited to 'home/profiles')
-rw-r--r-- | home/profiles/gui/config/sway.nix | 3 |
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' |