File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,17 +55,20 @@ All commands are executed in a shell.
5555# EXAMPLE
5656
5757```
58- swayidle \
59- timeout 300 'swaylock -c 000000' \
58+ swayidle -w \
59+ timeout 300 'swaylock -f - c 000000' \
6060 timeout 600 'swaymsg "output * dpms off"' \
6161 resume 'swaymsg "output * dpms on"' \
62- before-sleep 'swaylock -c 000000'
62+ before-sleep 'swaylock -f - c 000000'
6363```
6464
6565This will lock your screen after 300 seconds of inactivity, then turn off your
6666displays after another 300 seconds, and turn your screens back on when resumed.
6767It will also lock your screen before your computer goes to sleep.
6868
69+ To make sure swayidle waits for swaylock to lock the screen before it releases the
70+ inhibition lock, the * -w* options is used in swayidle, and * -f* in swaylock.
71+
6972# AUTHORS
7073
7174Maintained by Drew DeVault < sir@cmpwn.com > , who is assisted by other open
You can’t perform that action at this time.
0 commit comments