From 55558a31d6d69f7a3451dc9f7d35669098f7e1ca Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Wed, 17 Nov 2021 12:26:56 -0700 Subject: [PATCH] This works better supposedly --- .config/sway/config.d/.idle.example | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/sway/config.d/.idle.example b/.config/sway/config.d/.idle.example index 8adc964..4f4d11d 100644 --- a/.config/sway/config.d/.idle.example +++ b/.config/sway/config.d/.idle.example @@ -1,10 +1,11 @@ # Example # DO NOT EDIT THIS FILE -# exec swayidle -w \ +#exec swayidle -w \ timeout 300 '$lock_command' \ timeout 301 'swaymsg "output * dpms off"' \ timeout 360 'systemctl suspend' \ - timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ resume 'swaymsg "output * dpms on"' \ + timeout 10 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \ + resume 'if pgrep -x swaylock; then swaymsg "output * dpms on"; fi' \ before-sleep 'playerctl -a pause' \ - before-sleep '$lock_command' & + before-sleep '$lock_command'