Running without sudo - marcospb19/dawctl GitHub Wiki

If you're done with installation, now the script is available for all users.

However, Linux will block USB communication without having permissions, you would need to type sudo every time, the solutions is creating an exception by adding a "rule" to dawctl talk with the mouse:

Create a file, at /etc/udev/rules.d/99-hidraw-permissions.rules, and copy this:

KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="wheel"

Now every user in the group wheel can talk with the mouse (your user is probably already in wheel!) via hidraw, that is, usbHID RAW communication.

Final step, update kernel event triggers:

sudo udevadm control --reload
sudo udevadm trigger

If it does not work, it's probably because your user is not in the WHEEL group, which is unusual...

TODO!("there is a installation script for this already.")