-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update example to include a recommended -w option in swayidle
and -f in swaylock: ``` -f, --daemonize Detach from the controlling terminal after locking. ```
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|