Systemd unit for kanata [Linux] #130
Replies: 6 comments 19 replies
-
Seems like |
Beta Was this translation helpful? Give feedback.
-
Unable to get this to work, can't find any devices. Maybe it runs with the wrong user? |
Beta Was this translation helpful? Give feedback.
-
checked error log
systemd runs as root, so i blindly added root to the input, uinput groups too early to get uinput?I wondered if the service was started at an early time when uinput could not be found, solutionI made the kernel load the uinput module into memory first, and suddenly it worked. add
|
Beta Was this translation helpful? Give feedback.
-
For whoever that gets |
Beta Was this translation helpful? Give feedback.
-
I didn't want to fight with permissions and all that stuff, so I made a system-wide config ( [Unit]
Description=Kanata keyboard remapper
Documentation=https://github.com/jtroo/kanata
[Service]
Type=simple
ExecStart=/home/user/.cargo/bin/kanata --cfg /home/user/.config/kanata/config-name.kbd
Restart=never
[Install]
WantedBy=default.target Also did this: # sudo systemctl daemon-reload # maybe this will be required when changing the service file
sudo systemctl start kanata
sudo systemctl enable kanata |
Beta Was this translation helpful? Give feedback.
-
For non systemd users:
/usr/local/bin/kanata-daemon.sh
|
Beta Was this translation helpful? Give feedback.
-
~/.config/systemd/user/kanata.service
systemctl --user start kanata.service
to start kanata daemonsystemctl --user enable kanata.service
so it may autostart whenever the current user logs in.systemctl --user status kanata.service
to check if kanata daemon is running or not.Beta Was this translation helpful? Give feedback.
All reactions