- 
                Notifications
    You must be signed in to change notification settings 
- Fork 225
Avoid using sudo on Linux
        jtroo edited this page Aug 13, 2022 
        ·
        4 revisions
      
    In Linux, kanata needs to be able to access the input and uinput subsystem to inject events. To do this, your user needs to have permissions. Follow the steps in this page to obtain user permissions.
sudo groupadd uinputsudo usermod -aG input $USER
sudo usermod -aG uinput $USERMake sure that it's effective by running groups. You might have to logout and login.
Add a udev rule (in either /etc/udev/rules.d or /lib/udev/rules.d) with the following content:
KERNEL=="uinput", MODE="0660", GROUP="uinput", OPTIONS+="static_node=uinput"
You may need to run this command whenever you start kanata for the first time:
sudo modprobe uinput
The original text was taken and adapted from: https://github.com/kmonad/kmonad/blob/master/doc/faq.md#linux