diff --git a/.config/sway/config.d/default b/.config/sway/config.d/default index 7318c71..bac9456 100644 --- a/.config/sway/config.d/default +++ b/.config/sway/config.d/default @@ -28,8 +28,8 @@ set $powermenu ~/.config/waybar/scripts/power-menu.sh ### Idle configuration exec swayidle -w\ timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\ - timeout 770 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' \ + timeout 770 'swaymsg "output * power off"' \ + resume 'swaymsg "output * power on"' \ before-sleep 'swaylock -C ~/.config/swaylock/config' # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when diff --git a/.config/sway/scripts/lockman.sh b/.config/sway/scripts/lockman.sh index 69beb7d..69edccf 100644 --- a/.config/sway/scripts/lockman.sh +++ b/.config/sway/scripts/lockman.sh @@ -1,8 +1,8 @@ #!/bin/sh # Times the screen off and puts it to background swayidle \ - timeout 300 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on"' & + timeout 300 'swaymsg "output * power off"' \ + resume 'swaymsg "output * power on"' & # Locks the screen immediately swaylock # Kills last background task so idle timer doesn't keep running