Merge pull request #45 from xPMo/main
Fix: Sway 1.8 changed "dpms" to "power"
This commit is contained in:
@@ -28,8 +28,8 @@ set $powermenu ~/.config/waybar/scripts/power-menu.sh
|
|||||||
### Idle configuration
|
### Idle configuration
|
||||||
exec swayidle -w\
|
exec swayidle -w\
|
||||||
timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\
|
timeout 1070 'swaylock -f -C ~/.config/swaylock/config'\
|
||||||
timeout 770 'swaymsg "output * dpms off"' \
|
timeout 770 'swaymsg "output * power off"' \
|
||||||
resume 'swaymsg "output * dpms on"' \
|
resume 'swaymsg "output * power on"' \
|
||||||
before-sleep 'swaylock -C ~/.config/swaylock/config'
|
before-sleep 'swaylock -C ~/.config/swaylock/config'
|
||||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
# 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
|
# your displays after another 300 seconds, and turn your screens back on when
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Times the screen off and puts it to background
|
# Times the screen off and puts it to background
|
||||||
swayidle \
|
swayidle \
|
||||||
timeout 300 'swaymsg "output * dpms off"' \
|
timeout 300 'swaymsg "output * power off"' \
|
||||||
resume 'swaymsg "output * dpms on"' &
|
resume 'swaymsg "output * power on"' &
|
||||||
# Locks the screen immediately
|
# Locks the screen immediately
|
||||||
swaylock
|
swaylock
|
||||||
# Kills last background task so idle timer doesn't keep running
|
# Kills last background task so idle timer doesn't keep running
|
||||||
|
|||||||
Reference in New Issue
Block a user