Fix swayidle
This commit is contained in:
parent
678133425b
commit
69032f67f2
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue