Merge pull request #45 from xPMo/main

Fix: Sway 1.8 changed "dpms" to "power"
This commit is contained in:
OdiousImp2604
2022-12-31 16:32:30 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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