ydotool
ydotool copied to clipboard
Docs: ydotoold can work without `sudo`
Using udev+tag:uaccess works. See https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices and https://github.com/iberianpig/fusuma/issues/335#issuecomment-2617579860
could you post the full udev rule that worked for you?
ydotool needs access to /dev/uninput. I am usi g this package which install the necessary rule to grant my user the access - https://aur.archlinux.org/packages/game-devices-udev
Herecs the specific file - https://codeberg.org/fabiscafe/game-devices-udev/src/branch/main/71-uinput-dev-early-creation.rules
Source - https://wiki.archlinux.org/title/Gamepad#Device_permissions