aboutsummaryrefslogtreecommitdiffstats
path: root/swayidle/swayidle.1.scd
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-10-28 09:16:42 +0100
committerLibravatar emersion <contact@emersion.fr>2018-10-28 09:16:42 +0100
commit5fcb814a736698f76259904e291650a6d0485f8c (patch)
tree1d86abcfb44d4d33a59160677ab66821b78cb31b /swayidle/swayidle.1.scd
parentMerge pull request #2997 from RyanDwyer/fix-cursor-during-operation (diff)
downloadsway-5fcb814a736698f76259904e291650a6d0485f8c.tar.gz
sway-5fcb814a736698f76259904e291650a6d0485f8c.tar.zst
sway-5fcb814a736698f76259904e291650a6d0485f8c.zip
swayidle: enter idle state on SIGUSR1
Diffstat (limited to 'swayidle/swayidle.1.scd')
-rw-r--r--swayidle/swayidle.1.scd14
1 files changed, 8 insertions, 6 deletions
diff --git a/swayidle/swayidle.1.scd b/swayidle/swayidle.1.scd
index 7c1b138a..3083163f 100644
--- a/swayidle/swayidle.1.scd
+++ b/swayidle/swayidle.1.scd
@@ -22,11 +22,13 @@ swayidle listens for idle activity on your Wayland compositor and executes tasks
22on various idle-related events. You can specify any number of events at the 22on various idle-related events. You can specify any number of events at the
23command line. 23command line.
24 24
25Sending SIGUSR1 to swayidle will immediately enter idle state.
26
25# EVENTS 27# EVENTS
26 28
27*timeout* <timeout> <timeout command> [resume <resume command>] 29*timeout* <timeout> <timeout command> [resume <resume command>]
28 Execute _timeout command_ if there is no activity for <timeout> seconds. 30 Execute _timeout command_ if there is no activity for <timeout> seconds.
29 31
30 If you specify "resume <resume command>", _resume command_ will be run when 32 If you specify "resume <resume command>", _resume command_ will be run when
31 there is activity again. 33 there is activity again.
32 34
@@ -39,11 +41,11 @@ All commands are executed in a shell.
39# EXAMPLE 41# EXAMPLE
40 42
41``` 43```
42 swayidle \ 44swayidle \
43 timeout 300 'swaylock -c 000000' \ 45 timeout 300 'swaylock -c 000000' \
44 timeout 600 'swaymsg "output * dpms off"' \ 46 timeout 600 'swaymsg "output * dpms off"' \
45 resume 'swaymsg "output * dpms on"' \ 47 resume 'swaymsg "output * dpms on"' \
46 before-sleep 'swaylock -c 000000' 48 before-sleep 'swaylock -c 000000'
47``` 49```
48 50
49This will lock your screen after 300 seconds of inactivity, then turn off your 51This will lock your screen after 300 seconds of inactivity, then turn off your
@@ -58,4 +60,4 @@ https://github.com/swaywm/sway.
58 60
59# SEE ALSO 61# SEE ALSO
60 62
61*sway*(5) *swaymsg*(1) *sway-input*(5) *sway-bar*(5) 63*sway*(5) *swaymsg*(1) *sway-input*(5) *sway-output*(5) *sway-bar*(5)