Skip to content

Commit 6f82cd9

Browse files
committed
Add example config file to man page
Adds an example of config file contents to more clearly explain the format to users unfamiliar with it. It's the same example as already exists in the man page.
1 parent ad9f24e commit 6f82cd9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

swayidle.1.scd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ It will also lock your screen before your computer goes to sleep.
9898
To make sure swayidle waits for swaylock to lock the screen before it releases the
9999
inhibition lock, the *-w* options is used in swayidle, and *-f* in swaylock.
100100

101+
# EXAMPLE CONFIG
102+
103+
The same example as above, when specified in a config file suach as $XDG_CONFIG_HOME/swayidle/config
104+
105+
```
106+
timeout 300 'swaylock -f -c 000000'
107+
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
108+
before-sleep 'swaylock -f -c 000000'
109+
```
110+
101111
# AUTHORS
102112

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

0 commit comments

Comments
 (0)