mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
swayidle: add ability to wait for command to finish
This commit is contained in:
parent
cab5449b1d
commit
9a6f4bc0d9
2 changed files with 18 additions and 3 deletions
|
|
@ -16,6 +16,10 @@ swayidle - Idle manager for Wayland
|
|||
*-d*
|
||||
Enable debug output.
|
||||
|
||||
*-w*
|
||||
Wait for command to finish executing before continuing, helpful for ensuring
|
||||
that a *before-sleep* command has finished before the system goes to sleep.
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
swayidle listens for idle activity on your Wayland compositor and executes tasks
|
||||
|
|
@ -36,6 +40,10 @@ Sending SIGUSR1 to swayidle will immediately enter idle state.
|
|||
If built with systemd support, executes _command_ before systemd puts the
|
||||
computer to sleep.
|
||||
|
||||
Note: this only delays sleeping up to the limit set in *logind.conf(5)* by
|
||||
the option InhibitDelayMaxSec. A command that hasn't finished by then will
|
||||
continue running after resuming from sleep.
|
||||
|
||||
All commands are executed in a shell.
|
||||
|
||||
# EXAMPLE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue