xrestrict
xrestrict copied to clipboard
A utility to modify the "Coordinate Transformation Matrix" of an XInput2 pointer device.
Seems like this does not work with more recent versions of autotools? Are you still maintaining this utility? Are you aware of a more recent similar utility?
If a user uses xrestrict to confine their tablet to their left screen, and later wants to confine it to their right screen, they cannot do this. This is because...
I would like to support something like the following user interaction: 1. `xrestrict --device-file=~/.config/xrestrict/mytablet -i` 2. User performs interactive selection of screen 3. xrestrict saves persistent identifier to provided file...
If I issue `xrestrict -d 15 -c 0` to restrict my tablet to my left monitor, it can actually reach the first column of pixels on my right monitor. It...
Use a third party library? I don't particularly like getopt, but I think as soon as I add the remaining command line flags things are going to be pretty messy...
At present xrestrict does not attempt to use information about the physical size of monitors. On monitors with non-square pixels this could result in incorrect aspect ratios. I am unaware...
There's a lot of duplicated cleanup code, I think it should _probably_ be refactored into using goto.
Using xinput to discover the XID of the pointer device is not particularly user friendly. It might be desirable to allow xrestrict to affect all pointer devices with "Abs X"...
Though my tablet's logical dimensions and physical dimensions are nearly identical, it's entirely possible some tablets are not, xrestrict should take this into account.