Generic command-line automation tool (no X!)
A systemd service that manages switching input devices between a VFIO host and guest
Is there any hook for the evdev "switch" event to run a script (ddccontrol)?
reddit.com/r/VFIO | 2021-01-23
/u/KernelTinkerer created evsieve not long ago as well. It can do this and more.
VFIO Service for Triggering Commands on evdev Switch
reddit.com/r/VFIO | 2021-01-15
By sheer coincidence, I've recently been working on a program evsieve, which can serve approximately the same purpose, though it doesn't include a systemd service or dbus functionality. I'll create my own post for it when it reaches version 1.0.
UInput keyboard remapper (Qwerty to Dvorak)
reddit.com/r/linux | 2021-01-13
Coincidentally, I’ve recently written a program evsieve that’s also capable of doing this, though a bit more general purpose.reddit.com/r/linux | 2021-01-13
If this is too daunting you should check out https://github.com/KarsMulder/evsieve
KarsMulder/evsieve is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.