Last active
March 20, 2019 22:08
-
-
Save ursm/13f53c61f3759d4aba3e18af55eb7b6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION=="add", ENV{ID_INPUT_KEYBOARD}=="1", ENV{DEVPATH}!="/devices/virtual/input/*", TAG+="systemd", ENV{SYSTEMD_ALIAS}+="/sys/devices/virtual/input/%k", RUN+="/bin/systemctl --no-block start oneshot-modifier@%k.service" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
BindsTo=sys-devices-virtual-input-%i.device | |
[Service] | |
ExecStart=/home/ursm/src/github.com/ursm/oneshot-modifier/oneshot-modifier /dev/input/%I |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment