aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2016-08-26 10:23:01 -0400
committerRyan Kavanagh <rak@debian.org>2016-08-26 10:23:01 -0400
commit55b338572a4d085457b7bdf026aa98d0e6f58669 (patch)
tree9061d07b8f779d2224c9e69f0a3a9f5174b61ca7
parentFix typo in accounts.rc (diff)
Fix broken left alt in terminal
-rw-r--r--.xkb/symbols/lalt_meta4
-rwxr-xr-xbin/icd5
2 files changed, 8 insertions, 1 deletions
diff --git a/.xkb/symbols/lalt_meta b/.xkb/symbols/lalt_meta
new file mode 100644
index 0000000..9e27570
--- /dev/null
+++ b/.xkb/symbols/lalt_meta
@@ -0,0 +1,4 @@
+partial modifier_keys
+xkb_symbols "lalt_meta" {
+ key <LALT> { [ Meta_L ] } ;
+};
diff --git a/bin/icd b/bin/icd
index f816063..1b9a011 100755
--- a/bin/icd
+++ b/bin/icd
@@ -9,6 +9,7 @@ GLOBAL_OPTIONS="\
-variant icd, \
-option terminate:ctrl_alt_bksp \
-option nbsp:level3n \
+ -option lalt_meta:lalt_meta \
-option grp:shifts_toggle"
LAPTOP_OPTIONS="\
@@ -47,12 +48,14 @@ if [ "x${KIN_USB_ID}" != "x" ]; then
-I${XKB_DIR} \
-device ${XID} \
${KIN_OPTIONS} \
- -print | sed -e 's@+ctrl(nocaps)@@g' > ${HOME}/.xkb/keymap/icd.kin
+ -print | sed -e 's@+ctrl(nocaps)@@g;s@bksp)@bksp)+lalt_meta(lalt_meta)@g' > ${HOME}/.xkb/keymap/icd.kin
xkbcomp -I${HOME}/.xkb -i ${XID} -synch \
${HOME}/.xkb/keymap/icd.kin ${DISPLAY} # 2> /dev/null
done
xkbcomp -I${HOME}/.xkb -synch \
${HOME}/.xkb/keymap/icd.kin ${DISPLAY} # 2> /dev/null
+ xmodmap -e "remove mod1 = Alt_R"
+ xmodmap -e "add mod4 = Alt_R"
fi
if [ "x${SUN_USB_ID}" != "x" ]; then