Apply changes to code to support path; Add signal handling; Update README

This commit is contained in:
Allen Wolf
2023-12-30 02:35:32 -06:00
parent 5c3863421b
commit 4973eaaa36
5 changed files with 254 additions and 0 deletions

12
mergeinputs.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Merge multiple keyboards into one input
After=multi-user.target
ConditionPathExistsGlob=/dev/input/by-path/*-kbd
StartLimitIntervalSec=5
StartLimitBurst=20
[Service]
ExecStart=/bin/sh -c '/usr/local/bin/mergeinputs /dev/input/by-path/*-kbd'
[Install]
WantedBy=multi-user.target