whereswaldon / kfreestyle2d

Unofficial Kinesis Freestyle 2 Userspace Linux Driver
MIT License
76 stars 21 forks source link

Use uaccess to allow user access to the device #16

Open abompard opened 5 months ago

abompard commented 5 months ago

Ref: https://wiki.archlinux.org/title/Udev#Allowing_regular_users_to_use_devices

The uaccess udev tag will add an ACL on the device for the currently logged-in user. This means the rules must run before level 70, where the uaccess tag will be acted upon.

As a consequence, we don't need to create the uinput group, and the service can run in the per-user systemd instance.

Also, use an instanciated systemd service to handle multiple keyboards (I haven't tested that as I own only one).