X-Git-Url: https://git.madduck.net/etc/xsession.git/blobdiff_plain/6f1a4b6dbb0f19265df48d27003426309747d31f..5a12b8927d1fad83964638d5e2fc9c3bf8a6679a:/.xsession.d/01-xkb diff --git a/.xsession.d/01-xkb b/.xsession.d/01-xkb index 557ee0b..1427ef9 100644 --- a/.xsession.d/01-xkb +++ b/.xsession.d/01-xkb @@ -1,2 +1,12 @@ # load the keyboard definitions -xkbcomp $HOME/.xkb ${DISPLAY%%.*} + +XKBDIR="$HOME/.xkb" +#XKBMAPFILE="$XKBDIR/keymap/${(%):-%M}" +XKBMAPFILE="$XKBDIR/keymap/$(hostname --fqdn)" +[ -r "$XKBMAPFILE" ] || XKBMAPFILE="${XKBMAPFILE%/*}/default" + +xkbcomp -w3 -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}" + +unset XKBDIR XKBMAPFILE + +# vim:ft=zsh