Skip to content

Commit 1107201

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 1d7ae5e commit 1107201

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+
The events can alternatively be put into a configuration file as follows:
102+
103+
```
104+
timeout 300 'swaylock -f -c 000000'
105+
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"'
106+
before-sleep 'swaylock -f -c 000000'
107+
```
108+
109+
If a default location is chosen, the swayidle instantiation is then simply `swayidle -w`.
110+
101111
# AUTHORS
102112

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

0 commit comments

Comments
 (0)