Created
October 23, 2013 11:57
-
-
Save yukirin/7117268 to your computer and use it in GitHub Desktop.
キーボード再接続時のudev rulesの追加
This file contains 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
#!/usr/bin/zsh | |
sleep 2 | |
DISPLAY=":0" | |
HOME=/home/hoge/ | |
XAUTHORITY=$HOME/.Xauthority | |
export DISPLAY HOME XAUTHORITY | |
setxkbmap | |
xmodmap /home/hoge/.Xmodmap | |
This file contains 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
#!/usr/bin/zsh | |
nohup /home/hoge/bin/kbd.sh >/dev/null 2>&1 & | |
This file contains 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", 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