xidle1
Run a program on x inactivity
Usage
xidle [-area
pixels]
[-delay
secs]
[-display
display]
[-no
-nw
-ne
-sw
-se]
[-program
path]
[-timeout
secs]
Overview
xidle uses the XScreenSaver(3) extension to receive inactivity events when a timeout is specified, running a specific program after the elapsed time. xidle will also run the program if it is sent a SIGUSR1 signal, or if the pointer sits in a corner of the screen for an amount of time. Signal and corner locking are always enabled, whether -timeout is specified or not.
The options are as follows:
-
-area pixels -
Specify the size, in pixels, of the corner area. The default is 2 pixels.
-
-delay secs -
Specify the number of seconds the pointer has to be in the given position before running the program. The default is 2 seconds.
-
-display display -
This argument allows you to specify the server to connect to; see X(7).
-
-no-nw-ne-sw-seSet the position to one of none, northwest, northeast, southwest, or southeast, respectively. If no position is specified, the default is northwest. -
-program path -
Specify the full pathname of the program to run on any of the aforementioned events. Arguments to the program may also be specified, separated by whitespace. If
-programis not specified, the default is xlock(1). -
-timeout secs -
Set the timeout to the specified number of seconds. If
-timeoutis not specified,xidlewon't run any program on inactivity.
Resources
A few sets of application specific resources are supported and their values can be overridden by the command line options:
area(classArea)-
Specify the size, in pixels, of the corner area; see the
-areaoption. delay(classDelay)-
Specify the number of seconds to wait before running the program; see the
-delayoption. position(classPosition)-
Set the position to one of: "no", "nw", "ne", "sw", or "se"; see descriptions of the
-no,-nw,-ne,-sw, and-seoptions. program(classProgram)-
Specify the full pathname of the program to run; see the
-programoption. timeout(classTimeout)-
Set the timeout to the specified number of seconds; see the
-timeoutoption.
The xidle program resource class is XIdle.
Examples
Run xlock(1) using the flying bats mode if no activity is detected in 300 seconds or the pointer sits in the southwest corner for more than 5 seconds:
$ xidle -delay 5 -sw -program "/usr/X11R6/bin/xlock -mode bat" \ -timeout 300
Releases
5 releases since Debian 9 (Stretch); the text changed 1 time.
-ne until Debian 10 (Buster);
-nw until Debian 10 (Buster);
-se until Debian 10 (Buster);
-sw until Debian 10 (Buster).