From e234f6924c5998860aa7cc6f937345e1510ac50b Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 7 Oct 2023 14:26:19 +0900 Subject: feat(home/gui): sway: suspend using systemctl This commit fixes various issues raised by using swayidle for entering suspend state, such as: 1) Blurred screenshot background being unavailable 2) Dangling screen lock notification 3) Delays until the system actually enters the suspend state --- home/profiles/gui/config/sway.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home') diff --git a/home/profiles/gui/config/sway.nix b/home/profiles/gui/config/sway.nix index 3f7307d..e5ea357 100644 --- a/home/profiles/gui/config/sway.nix +++ b/home/profiles/gui/config/sway.nix @@ -167,7 +167,7 @@ in bindsym $mod+q exec loginctl lock-session 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 + bindsym --locked $mod+Ctrl+q exec systemctl suspend # Power bindsym XF86PowerOff exec swaynag -t error -m 'Confirm poweroff?' -b 'Confirm' 'shutdown now' -- cgit 1.4.1