A simple bash script to toogle [ON/OFF] an input device listed in xinput
- Download the script.
- Run
xinput list
to see a list of available input devices and note the id of the device you want to toogle. - Make the script executable using
chmod +x toogle-input.sh
. - Run
./toogle-xinput.sh [id]
to toogle that input device. - Create a custom keyboard shortcut for this command.
- Sends an event notification on:
- KDE
- Ubuntu