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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
.. RST source for xdeadzone(1) man page. Convert with:
.. rst2man.py xdeadzone.rst > xdeadzone.1
.. include:: version.rst
.. |date| date::
=========
xdeadzone
=========
------------------------------------------------------------------------------
keep the mouse pointer out of the dead zone, on mismatched multihead displays.
------------------------------------------------------------------------------
:Manual section: 1
:Manual group: Urchlay's Misc Stuff
:Date: |date|
:Version: |version|
SYNOPSIS
========
xdeadzone [**-b** | **-w** ] [**-n*] [**-nw** | **-ne** | **-sw** | **-se** ] *geometry*
xdeadzone **--help** | **--version**
DESCRIPTION
===========
**xdeadzone**'s job is to create a window of a specified size and
position, and prevent the mouse pointer from entering it.
The intended use for it is to keep the mouse out of the "dead zone"
of a multi-head X display where the monitors don't all have the same
resolution.
It could also be useful for covering annoying parts of the screen,
e.g. advertisements in ad-driven software like the Opera browser, or
Adobe Reader. Use absolute positioning (no **-nw**, **-ne**, **-sw**,
**-se**) for this, and either **-b** or **-w** to make the window
visible.
By default, **xdeadzone** doesn't display a visible window. It stays
on top of other windows, and is present on every virtual desktop.
If run with **-b** or **-w**, it'll appear as a solid black or white
rectangle with no title bar or window frame... although if you're
using it to block the mouse from a dead zone, you won't be able to see
it anyway. If you want a titlebar (and a movable window), run with **-n**.
**xdeadzone** has been tested with various window managers and desktop
environments, and works properly with at least: KDE (Plasma 5), XFCE
4, Fmwv2, WindowMaker, BlackBox, and FluxBox.
As a safety measure, **xdeadzone** will allow the mouse pointer into
its window if the control key and at least one modifier (left/right
alt, "win" keys) are held down while the mouse is moving. This
prevents e.g. an error in the geometry argument from locking out the
mouse from the wrong part of the screen.
OPTIONS
=======
Options can appear in any order on the command line.
Required argument
-----------------
**geometry**
This is a standard X11 geometry specification. Its format is
<*width*>x<*height*> for **-nw**, **-ne**, **-sw**, **-se** modes. For
absolute positioning,
it's <*width*>x<*height*>[*+-*]<*xpos*>[*+-*]<*ypos*>.
Negative xpos and ypos will be
treated as offsets from the right/bottom of the display.
Examples: **200x100**, **64x64-0-0**, **50x60+100+100**.
Modes
-----
One (and only one) mode option is allowed. If none is given,
absolute positioning is used.
**-nw**
Place window at northwest (top left) corner of display.
**-ne**
Place window at northeast (top right) corner of display.
**-sw**
Place window at southwest (bottom left) corner of display.
**-se**
Place window at southeast (bottom right) corner of display.
Appearance options
------------------
These are optional, and control how **xdeadzone**'s window will look
and behave. By default, the window is invisible (*InputOnly* in Xlib
terms).
**-b**
Make window visible, display as a black rectangle.
**-w**
Make window visible, display as a white rectangle.
**-n**
Create window as a normal window, with titlebar and without
appearing on all desktops. Implies **-w**, but can be followed
by **-b** for a black rectangle.
In this mode, the window will have a titlebar (but no close button),
will be movable and resizable, and will not appear on all virtual
desktops. However, it will still be "always on top".
Informational options
---------------------
--help
Print built-in help, then exit.
--version
Print the application name and version number, then exit.
ENVIRONMENT
===========
**DISPLAY**
As usual for X applications: the X server to connect to.
EXIT STATUS
===========
With **--help** or **--version**, exit status is 0 (success).
If there's an error in the arguments, exit status is non-zero (failure).
In normal operation, **xdeadzone** never exits.
EXAMPLES
========
You have a 1920x1080 LCD monitor on the left, and a 1280x1024
one on the right. This gives you a nice 3200x1080 X display... but the
mouse can "vanish", because X pretends the right-hand monitor has
1080 vertical pixels. So there's a 1280x56 horizontal strip "below" the
bottom of the right-hand monitor that doesn't get displayed. If the
mouse moves into this area, the pointer disappears, and it's not
obvious what happened to it.
To avoid losing the pointer, you can run this::
xdeadzone -se 1280x56 &
...from your ~/.xinitrc (or whatever you use to run commands at X startup).
If you instead have the same two monitors in a vertical arrangement,
with the 1280x1024 one on top, you'll have a 640x1024 vertical strip
of 'dead zone' beyond the right edge of the top monitor. To avoid
losing the mouse there::
xdeadzone -ne 640x1024 &
If the dead zone were on the left of the top monitor, you'd use **-nw** instead
of **-ne**.
COPYRIGHT
=========
WTFPL. Do WTF you want to with this.
See http://www.wtfpl.net/txt/copying/ for details.
AUTHORS
=======
**xdeadzone** was written by B. Watson (urchlay@slackware.uk).
SEE ALSO
========
**xrandr**\(1)
|