
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
evdev-trigger
Advanced tools
A command-line tool to run shell commands when evdev input focus changes.
I use this to auto-disable mousetweaks when I'm using my touchscreen monitor, and auto-enable mousetweaks when I switch to my touchpad. This prevents unnecessary auto-clicks when tapping my touchscreen monitor.
With node.js installed on the target X11 box:
$ npm install -g evdev-trigger # might need to prefix with sudo
$ evdev-trigger
To read from /dev/input/
the running user needs to be a member of the input group.
On its first run evdev-trigger copies the default configuration file to
$XDG_CONFIG_HOME/evdev-trigger.conf
which defaults to
$HOME/.config/evdev-trigger.conf
. Edit this leanconf file with one or more
rules:
/dev/input/path: # for example /dev/input/event0
*: # event filter, wildcard * matches all events
run: shell-command-to-run
The following example configuration file enables or disables mousetweaks depending on which input device is currently in use:
# evdev-trigger.conf example configuration
/dev/input/by-id/usb-PixArtImaging_OpticalTouchScreen_0000-event-if00:
*:
run: mousetweaks --shutdown
/dev/input/by-id/usb-Wacom_Co._Ltd._Intuos_PTS-if01-event-mouse:
*:
run: mousetweaks --dwell --daemonize
$ evdev-trigger --help
Usage: evdev-trigger [Options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --config-path [path] path to configuration file (default:~/.config/evdev-trigger.conf)
-d, --dry-run trace commands without executing
-v, --verbose emit detailed trace for debugging
$ git clone --branch=dev https://github.com/dizzib/evdev-trigger.git
$ cd evdev-trigger
$ npm install # install dependencies
$ npm test # build all and run tests
$ npm start # start the task runner and dry-run evdev-trigger
FAQs
A command-line tool to run shell commands when evdev input focus changes.
The npm package evdev-trigger receives a total of 2 weekly downloads. As such, evdev-trigger popularity was classified as not popular.
We found that evdev-trigger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.