From b79cbdbfe4dcba066ec2d4a5fe94ff307d19fea9 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 16 Apr 2018 15:12:20 -0400 Subject: Kinesis at work randomly switched ctrl/alt; fix --- .xkb/keycodes/kinesisfix | 6 ++++++ bin/icd | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .xkb/keycodes/kinesisfix diff --git a/.xkb/keycodes/kinesisfix b/.xkb/keycodes/kinesisfix new file mode 100644 index 0000000..e700ab5 --- /dev/null +++ b/.xkb/keycodes/kinesisfix @@ -0,0 +1,6 @@ +xkb_keycodes { + = 133; + = 64; + = 105; + = 134; +}; diff --git a/bin/icd b/bin/icd index 149c7bb..2949502 100755 --- a/bin/icd +++ b/bin/icd @@ -19,6 +19,7 @@ LAPTOP_OPTIONS="\ KIN_OPTIONS="\ ${GLOBAL_OPTIONS} \ + -geometry kinesis -option lv3:switch \ -option caps:swapescape" @@ -54,7 +55,9 @@ if [ "x${KIN_USB_ID}" != "x" ]; then -I${XKB_DIR} \ -device ${XID} \ ${KIN_OPTIONS} \ - -print | sed -e 's@+ctrl(nocaps)@@g;s@bksp)@bksp)+lalt_meta(lalt_meta)@g' > ${HOME}/.xkb/keymap/icd.kin + -print | \ + sed -e 's@+ctrl(nocaps)@@g;s@bksp)@bksp)+lalt_meta(lalt_meta)@g' | \ + sed -e '/xkb_keycodes/s/"[[:space:]]/+kinesisfix&/' > ${HOME}/.xkb/keymap/icd.kin xkbcomp -I${HOME}/.xkb -i ${XID} -synch \ ${HOME}/.xkb/keymap/icd.kin ${DISPLAY} # 2> /dev/null done -- cgit v1.2.3