diff options
Diffstat (limited to 'swayidle/swayidle.1.scd')
-rw-r--r-- | swayidle/swayidle.1.scd | 14 |
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 | |||
22 | on various idle-related events. You can specify any number of events at the | 22 | on various idle-related events. You can specify any number of events at the |
23 | command line. | 23 | command line. |
24 | 24 | ||
25 | Sending 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 \ | 44 | swayidle \ |
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 | ||
49 | This will lock your screen after 300 seconds of inactivity, then turn off your | 51 | This 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) |