-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathxclickroot.1
62 lines (62 loc) · 1.19 KB
/
xclickroot.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.Dd May 29, 2023
.Dt XCLICKROOT 1
.Os
.Sh NAME
.Nm xclickroot
.Nd run command on button press on root window
.Sh SYNOPSIS
.Nm xclickroot
.Op Fl 12345lmr
.Ar command
.Op Ar arg ...
.Sh DESCRIPTION
.Nm
runs a command when a given mouse button is pressed on the root window.
The arguments
.Ar command
and
.Ar arg ...
are the command to be run and its arguments.
.Pp
By default, the command is run when the right mouse button is pressed on the root window.
This can be changed by one of the following options.
.Bl -tag -width Ds
.It Fl 1 | l
Use the left mouse button.
.It Fl 2 | m
Use the middle mouse button.
.It Fl 3 | r
Use the right mouse button.
.It Fl 4
Use scroll up.
.It Fl 5
Use scroll down.
.El
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm .
.Bl -tag -width Ds
.It Ev DISPLAY
The display to start
.Nm
on.
.El
.Sh EXAMPLES
.Nm
is most commonly invoked at
.Pa "~/.xinitrc"
or
.Pa "~/.xsession"
(or any other script starting up a
.Xr X 7
session)
in background, before the window manager, as follows:
.Bd -literal -offset indent
xclickroot -l xterm &
.Ed
.Pp
That will invoke
.Xr xterm 1
whenever the user clicks on the root window with the left mouse button.
.Sh SEE ALSO
.Xr X 7