Fix swayidle

This commit is contained in:
pancakes 2024-03-30 21:49:12 +10:00
parent 678133425b
commit 69032f67f2

View file

@ -56,12 +56,8 @@ riverctl input $T480_POINTER natural-scroll enabled
riverctl input $T480_POINTER tap enabled
riverctl input $T480_POINTER tap-button-map left-right-middle
# Lock screen after 10 mins idle or before sleep
# Turn off displays after 15 mins
[[ $RIVER_IDLE == "1" ]] && swayidle -w \
timeout 600 swaylock \
timeout 900 "way-displays -s DISABLED '!.'" resume "way-displays -d DISABLED '!.'" \
before-sleep swaylock &
# Lock screen after 5 mins idle or before sleep
riverctl spawn "swayidle -w timeout 300 'swaylock -f' before-sleep 'swaylock -f'"
## Mappings
# Applications