implement ext-idle-notify-v1
This commit is contained in:
@@ -59,6 +59,25 @@ The command (string), the currently active tags (integer representing a
|
||||
bitfield of size 32) and the global name of the output (integer).
|
||||
This event can be used to change paramters of the layout.
|
||||
A new layout demand will be send right after this event.
|
||||
.P
|
||||
The key \fBidle:X\fR installs a handler which is called when the system has been
|
||||
idle for \fIX\fR seconds.
|
||||
As an example, use \fBidle:300\fR if you wish to be notified of your system
|
||||
being idle for five minutes.
|
||||
Idle in this case relates to user interaction;
|
||||
The system being idle for five minutes usually means there has been no input
|
||||
from the user in five minutes.
|
||||
Idle status however can also be influenced by other factors, for example by
|
||||
other programs inhibiting it (like video players), special sensors (user
|
||||
presence sensors) and is generally server-specific policy.
|
||||
The handler procedure must accept one argument, a symbol indicating the type
|
||||
of idle event.
|
||||
This symbol is either \fBidle\fR, indicating the system has been idle for the
|
||||
configured amount of time, or \fBresume\fR, indicating that the time intervall
|
||||
of the system being idle is over.
|
||||
Multiple idle handlers can be installed.
|
||||
Note: All idle events relate to the first advetised seat.
|
||||
As of now, river only supports a single seat anyway.
|
||||
.
|
||||
.
|
||||
.SH EXAMPLE
|
||||
|
||||
Reference in New Issue
Block a user