Skip to content

Instantly share code, notes, and snippets.

@yukirin
Created October 23, 2013 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukirin/7117268 to your computer and use it in GitHub Desktop.
Save yukirin/7117268 to your computer and use it in GitHub Desktop.
キーボード再接続時のudev rulesの追加
#!/usr/bin/zsh
sleep 2
DISPLAY=":0"
HOME=/home/hoge/
XAUTHORITY=$HOME/.Xauthority
export DISPLAY HOME XAUTHORITY
setxkbmap
xmodmap /home/hoge/.Xmodmap
#!/usr/bin/zsh
nohup /home/hoge/bin/kbd.sh >/dev/null 2>&1 &
ACTION=="add", ATTR{name}=="*hoge*fuga*kbd*", RUN+="/home/hoge/bin/kbd_start_up.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment