From c9d53b481dc02c22bb4300098c5538f176047268 Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 21 Jan 2024 11:48:35 -0500 Subject: [PATCH] tweak sway config for idle --- home/default/.config/sway/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/default/.config/sway/config b/home/default/.config/sway/config index b603801..8c54bc7 100644 --- a/home/default/.config/sway/config +++ b/home/default/.config/sway/config @@ -45,13 +45,13 @@ exec_always { exec swayidle -w \ timeout 300 'playerctl -a pause' \ timeout 300 'swaylock' \ - timeout 600 'swaymsg "output * dpms off"' \ timeout 15 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ + timeout 600 'swaymsg "output * power off"' \ before-sleep 'playerctl -a pause' \ lock 'swaylock' \ - resume 'swaymsg "output * dpms on"' + resume 'swaymsg "output * power on"' -# screen lock +# system lock bindsym Ctrl+Shift+l exec "playerctl -a pause; \ systemctl suspend && \ swaylock"