From 386d70c6a8334ef6efaf03fa873b82ab6a807a05 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 25 Jul 2013 07:55:10 -0400 Subject: Bug fix in icd script --- bin/icd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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" \ -- cgit v1.2.3