aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2013-07-25 07:55:10 -0400
committerRyan Kavanagh <rak@debian.org>2013-07-25 08:45:09 -0400
commit386d70c6a8334ef6efaf03fa873b82ab6a807a05 (patch)
tree36632576f983655a8b13103d5f43295b9a6c4414
parentAdd tmux binding for creating sessions (diff)
Bug fix in icd script
-rwxr-xr-xbin/icd4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/icd b/bin/icd
index 21ff806..22885e7 100755
--- a/bin/icd
+++ b/bin/icd
@@ -9,12 +9,12 @@ OPTIONS="-option lv3:ralt_switch_multikey \
-variant icd"
SUN_USB_ID=$(lsusb | grep Sun | awk '{ print $6 }')
-SUN_XINPUT_ID=$(xinput | grep ${SUN_USB_ID} | sed -e 's/.*id=\([0-9]\+\).*/\1/g')
setxkbmap ${OPTIONS} -print > ${HOME}/.xkb/keymap/icd
xkbcomp -I/home/ryan/.xkb /home/ryan/.xkb/keymap/icd $DISPLAY 2> /dev/null
-if [ "x${SUN_XINPUT_ID}" != "x" ]; then
+if [ "x${SUN_USB_ID}" != "x" ]; then
+ SUN_XINPUT_ID=$(xinput | grep ${SUN_USB_ID} | sed -e 's/.*id=\([0-9]\+\).*/\1/g')
setxkbmap \
-I${HOME}/.xkb \
-keycodes "rak" \