kbct
kbct copied to clipboard
Add an example systemd.service
It took me a while to figure it out what exactly to put into the service file, I guess it will be helpful for others too.
After the PR about uinput
necessity I wonder if it would be better to include loading uinput
module in PreExec
step, so users won't need to think about it?
Ok, I then also moved the remark about loading the module to troubleshooting.
This helped me a lot, thanks for the PR. Hope it can get merged so others benefit too.
Here is my config since yours wasn't working on my Fedora Silverblue if ever someone need it:
[Unit]
Description=Keyboard keycode mapping daemon supporting layered configuration
[Service]
Type=simple
ExecStartPre=modprobe uinput
ExecStart=/bin/bash -c "/usr/local/bin/kbct remap --config /etc/kbct/config.yml"
Restart=always
[Install]
WantedBy=default.target
Yeah, you are right, I had typoes there it seems, added to the commit.
Also I needed /bin/bash -c ...
I see. Added link to /bin/sh