You are not logged in.
Pages: 1
Hello,
I recently set up a second monitor, and I set it right of my first using xrandr. However, I don't want my mouse to move between the two screens because I have a keyboard shortcut for that and it's annoying when the cursor accidentally ends up on the other screen; is there any way to make a sort of barrier there to make sure the mouse can't move out of the screen unless the keyboard shortcut is used? I don't know if this can be done with xrandr, or if it can be set in the config file of my window manager (awesomewm).
Thanks, Jan van Rossum
Offline
You can set a different geometry with xrandr so there isnt a shared border for the mouse to travel across. I've previously had a second screen "north east" of the primary, sharing just a corner. The mouse could move from one to the other but only at the shared corner. I suspect you'd get hard boundaries if you set the geometries so their borders weren't even intersecting, though I've never done that myself.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Iirc this once worked, then was opened, then smartened up (you cannot move into an area where nothing will follow but still head over to another output through the void)
You can try https://github.com/cas--/XCreateMouseVoid
Offline
Pages: 1