Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3fc3b5d

Browse files
committedDec 14, 2024·
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 ce077f1 commit 3fc3b5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎swayidle.1.scd

+10
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 <sir@cmpwn.com>, who is assisted by other open

0 commit comments

Comments
 (0)
Please sign in to comment.