Run Script When Any Key Pressed, Run 2nd Script After Any Pause
Hello, All,
Background: Acer C720 Chromebook, running GalliumOS 2.0 (Xubuntu 16.04). Touchpad issue: very jumpy, but no "disable when typing" option, and syndaemon installation will break system
Currently, I have the command:
xinput -disable "Cypress APA Trackpad (cyapa)"
bound to keystroke and:
xinput -enable "Cypress APA Trackpad (cyapa)"
bound to another. And I use one command or the other when typing.
It occurs to me that the xinput -disable "Cypress APA Trackpad (cyapa)" command (disabling touchpad) could be run at the press of any key and the xinput -enable "Cypress APA Trackpad (cyapa)" (enabling touchpad) could be run at any pause (say after 1.5 seconds).
Is it possible to script this procedure or is press-any-key and enable-after-any-pause too vague?
Any help would be much appreciated,
Jake
|