[Unit]
Description=xremap service
After=default.target
[Service]
ExecStart=/usr/bin/xremap /home/komamitsu/xremap.yml
[Install]
WantedBy=default.target
sudo systemctl enable xremap.service
sudo systemctl start xremap.service
(Thank you https://github.com/dcraig327!)
Add the user to input
group if it's not added.
sudo gpasswd -a YOUR_USER input
Then, execute the following command if /etc/udev/rules.d/input.rules
doesn't have the entry.
echo 'KERNEL=="uinput", GROUP="input", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/input.rules
[Unit]
Description=xremap
After=default.target
[Service]
ExecStart=%h/.cargo/bin/xremap %h/.config/xremap/config.yml
StandardOutput=journal
StandardError=journal
Restart=always
[Install]
WantedBy=default.target
systemctl --user enable xremap.service
systemctl --user start xremap.service
@dcraig327 Thanks! I'll try it.