Skip to content

Instantly share code, notes, and snippets.

@crazyboycjr
Created May 1, 2020 13:24
Show Gist options
  • Save crazyboycjr/46671427f8d8d36cd3d89f5d584b7437 to your computer and use it in GitHub Desktop.
Save crazyboycjr/46671427f8d8d36cd3d89f5d584b7437 to your computer and use it in GitHub Desktop.
running xset in udev.rules
# /etc/udev/rules.d/71-k380-keyboard.rules
ACTION=="add", KERNEL=="hidraw[0-9]*", RUN+="/usr/bin/su cjr -c \"DISPLAY=:1 XAUTHORITY=/home/cjr/.Xauthority xset r rate 200 36\""
ACTION=="add", KERNEL=="hidraw[0-9]*", RUN+="/usr/bin/su cjr -c \"DISPLAY=:1 XAUTHORITY=/home/cjr/.Xauthority setxkbmap -option 'ctrl:nocaps'\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment