Skip to content

Commit d18c7cb

Browse files
gdamjanemersion
authored andcommitted
update example to include a recommended -w option in swayidle
and -f in swaylock: ``` -f, --daemonize Detach from the controlling terminal after locking. ```
1 parent f002a7a commit d18c7cb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

swayidle.1.scd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

6565
This will lock your screen after 300 seconds of inactivity, then turn off your
6666
displays after another 300 seconds, and turn your screens back on when resumed.
6767
It 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

7174
Maintained by Drew DeVault <[email protected]>, who is assisted by other open

0 commit comments

Comments
 (0)