[Linux] Setup Hyper/Use xkb instead of xmodmap

This commit is contained in:
2016-10-03 16:49:42 -07:00
parent 4131761550
commit 1ddf67fca8
8 changed files with 31 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
XKBDIR="$HOME/.xkb"
XKBMAPFILE="$XKBDIR/keymap/$(hostname --fqdn)"
[[ -r "$XKBMAPFILE" ]] || XKBMAPFILE="${XKBMAPFILE%/*}/default"
echo "loading keymap from $XKBMAPFILE"
xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}"
unset XKBDIR XKBMAPFILE