encircle - bakkeby/dusk GitHub Wiki
encircle
is a tool to make the mouse cursor wrap around screen edges, such that if the mouse cursor hits the rightmost side of the monitor then the cursor is going to reappear on the far left side of the monitor.
What makes this tool unique is that it is Xinerama aware and as such knows which monitor is next to another allowing the cursor to seamlessly wrap around across monitors.
What I wanted to highlight is not the mouse cursor wrapping around with this tool, but a specific quality of life feature that makes a difference in a vertical + horizontal monitor setup.
Typically in such a setup the vertical monitor will be taller than the height of the horizontal monitor, which creates hard edges at the top and bottom of the vertical monitor.
When moving the mouse cursor from the vertical monitor over to the horizontal one the cursor can hit that hard wall and be blocked from moving over, and you have to feel your way up or down to find the gap that allows the cursor to transition over to the other screen.
encircle
has an option that allows the mouse cursor to snap to the nearest screen edge in this scenario, which in practice makes it a soft edge.
-s, --snap
snap - enables cursor snapping to the nearest screen edge
This makes for such a natural feel when moving the mouse across monitors and I would very much recommend trying it out if you happen to use monitors that have different resolutions.
Dependencies:
Compile and run encircle -s
to test.
Back to Other scripts and life hacks.