about summary refs log tree commit diff
path: root/home/profiles
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-07 14:26:19 +0900
committersefidel <contact@sefidel.net>2023-10-07 14:26:19 +0900
commite234f6924c5998860aa7cc6f937345e1510ac50b (patch)
tree05eb2ba43e5fc3bda0bbf3a4e02a002fa2cbb3e6 /home/profiles
parent765883cbeb582a714e3030abf6cbf867c89401e7 (diff)
downloadnixrc-e234f6924c5998860aa7cc6f937345e1510ac50b.tar.gz
nixrc-e234f6924c5998860aa7cc6f937345e1510ac50b.zip
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
Diffstat (limited to 'home/profiles')
-rw-r--r--home/profiles/gui/config/sway.nix2
1 files changed, 1 insertions, 1 deletions
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'