kbct icon indicating copy to clipboard operation
kbct copied to clipboard

Add an example systemd.service

Open felagund opened this issue 2 years ago • 7 comments

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.

felagund avatar Jan 03 '22 23:01 felagund

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?

yunmikun2 avatar Feb 17 '22 00:02 yunmikun2

Ok, I then also moved the remark about loading the module to troubleshooting.

felagund avatar Feb 17 '22 11:02 felagund

This helped me a lot, thanks for the PR. Hope it can get merged so others benefit too.

NoahTheDuke avatar May 02 '22 20:05 NoahTheDuke

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

RichardFevrier avatar Oct 24 '22 12:10 RichardFevrier

Yeah, you are right, I had typoes there it seems, added to the commit.

felagund avatar Oct 25 '22 12:10 felagund

Also I needed /bin/bash -c ...

RichardFevrier avatar Oct 25 '22 12:10 RichardFevrier

I see. Added link to /bin/sh

felagund avatar Oct 25 '22 13:10 felagund