Skip to content

Bash shell script for palm rejection with Wacom stylus pens in Linux or similar systems with xinput and bash. Tested on Ubuntu 16.04 with an Cube i7 Book.

Notifications You must be signed in to change notification settings

retteghy/palmreject

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Palm rejection for bash and xinput

Source

olofmogren / palmreject

Tested on

  • OS: Ubuntu 20.04 beta with Gnome 3.36, Kubuntu 20.10
  • Hardware: Cube i7 Stylus
  • Software: Stylus Labs Write

Version notes

Code is temporarily hardwired to use my own device IDs, until I can find the bug causing the original version not to find my devices. Added rejection for eraser (my stylus comes with it and it palm should be rejected in both cases)

Dependencies

bash and xinput (both preinstalled on Ubuntu)

Function

  • Turns off touchscreen input when stylus is near screen.
  • Stylus status is checked every 100 ms, a timeout is by default set to 2 seconds for re-enabling the touchscreen after stylus input.

Usage

  1. Run "xinput list" to check the IDs of your devices and edit the respective lines in palmreject.sh.
  2. Run ./palmreject.sh every time you login.

About

Bash shell script for palm rejection with Wacom stylus pens in Linux or similar systems with xinput and bash. Tested on Ubuntu 16.04 with an Cube i7 Book.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%