-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencircle.1
69 lines (63 loc) · 2.4 KB
/
encircle.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
63
64
65
66
67
68
69
.TH ENCIRCLE 1 encircle\-VERSION
.SH NAME
encircle \- a Xinerama X cursor monitor wrapper
.SH SYNOPSIS
.B encircle
.RB [ \-hvfxys ]
.SH DESCRIPTION
encircle is a window manager agnostic tool that wraps your X cursor around the
edges of the screen and is specifically designed to work with asymmetric
multi-monitor Xinerama setups.
.P
In practice what this means is that the screen area is turned into a flat
torus in that when the cursor hits a screen edge then it will continue and
reappear on the opposite edge.
If snap is enabled and the cursor position is not within the target screen
then the cursor will snap to the nearest edge of that screen.
By default cursor snapping and wrapping is enabled on both horizontal and
vertical axes.
┌───────┐
│ 1┄┤
│ │┌───────────────^─┐┌───────┐
│ │├┄1┄> 4 ││ │
│ ││ ││ │
│ A ││ B ││ C │
│ ││ ││ │
├┄2 │├┄3┄> ││ <┄2┄┤
│ │└───────────────^─┘│ │
│ 3┄┤ │ │
└───────┘ └───────┘
In the above example we have four transitions:
1) snaps to the adjacent monitor (rather than hitting a hard wall)
2) wraps the cursor from monitor A to monitor C which is the rightmost monitor
3) snaps to the adjacent monitor (rather than hitting a hard wall)
4) wraps around monitor B because there is no other monitor above or below
If the monitor arrangement is changed (e.g. using xrandr) then encircle will be
notified of that and update monitor positions and dimensions accordingly.
.SH OPTIONS
.TP
.B \-h
prints help output
.TP
.B \-v, \-\-version
prints version information and exits
.TP
.B \-f, \-\-fork
fork the process run in the background
.TP
.B \-x, \-\-wrapx
enable cursor wrapping on the x-axis
.TP
.B \-y, \-\-wrapy
enable cursor wrapping on the y-axis
.TP
.B \-s, \-\-snap
snap - enables cursor snapping to the nearest screen edge
.P
In the aforementioned example this would enable transition 1) and 3)
.TP
.B \-sx, \-\-snapx
as \-s, but only enable snapping on the x-axis
.TP
.B \-sy, \-\-snapy
as \-s, but only enable snapping on the y-axis