Skip to content

Commit

Permalink
update example to include a recommended -w option in swayidle
Browse files Browse the repository at this point in the history
and -f in swaylock:
```
       -f, --daemonize
           Detach from the controlling terminal after locking.
```
  • Loading branch information
gdamjan authored and emersion committed Jan 27, 2019
1 parent f002a7a commit d18c7cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions swayidle.1.scd
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,20 @@ All commands are executed in a shell.
# EXAMPLE

```
swayidle \
timeout 300 'swaylock -c 000000' \
swayidle -w \
timeout 300 'swaylock -f -c 000000' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -c 000000'
before-sleep 'swaylock -f -c 000000'
```

This will lock your screen after 300 seconds of inactivity, then turn off your
displays after another 300 seconds, and turn your screens back on when resumed.
It will also lock your screen before your computer goes to sleep.

To make sure swayidle waits for swaylock to lock the screen before it releases the
inhibition lock, the *-w* options is used in swayidle, and *-f* in swaylock.

# AUTHORS

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

0 comments on commit d18c7cb

Please sign in to comment.