Controls swapping between stylus-only or stylus + touch on on IPTS-based systems (eg my Surface Pro 4)
- JavaScript 68.2%
- Shell 31.8%
| extension.js | ||
| iptsd-touch-toggle | ||
| metadata.json | ||
| README.md | ||
| setup.sh | ||
Touch Controller Gnome Panel
On Linux, my SP4 has bad palm rejection and when trying to draw, it becomes very hard to keep my hand off the screen or on the side. This aims to add a little button on the top panel, which swaps between "stylus only" and "stylus and touch"
How It Works
The /etc/iptsd.conf file contains some relevant config:
[Touchscreen]
## Disables the touchscreen. No data will be processed.
# Disable = false
## Ignore all touchscreen inputs if a palm was registered.
# DisableOnPalm = false
[Stylus]
## Disables the stylus. No stylus data will be processed.
# Disable = false
The idea of the button is that it:
- finds the device using
sudo iptsd-foreach echo {} - reads the file to know the current config
- alters the file using something like sed
- restarts the iptsd@dev-hidraw.service
This needs some sudoing.
What I might want?
- A config file where I can set the hidraw device and service to be used?
- The button might turn red in case of error?