File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,20 @@ All commands are executed in a shell.
55
55
# EXAMPLE
56
56
57
57
```
58
- swayidle \
59
- timeout 300 'swaylock -c 000000' \
58
+ swayidle -w \
59
+ timeout 300 'swaylock -f - c 000000' \
60
60
timeout 600 'swaymsg "output * dpms off"' \
61
61
resume 'swaymsg "output * dpms on"' \
62
- before-sleep 'swaylock -c 000000'
62
+ before-sleep 'swaylock -f - c 000000'
63
63
```
64
64
65
65
This will lock your screen after 300 seconds of inactivity, then turn off your
66
66
displays after another 300 seconds, and turn your screens back on when resumed.
67
67
It will also lock your screen before your computer goes to sleep.
68
68
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
+
69
72
# AUTHORS
70
73
71
74
Maintained by Drew DeVault
< [email protected] > , who is assisted by other open
You can’t perform that action at this time.
0 commit comments