X-Git-Url: https://git.madduck.net/etc/xsession.git/blobdiff_plain/6f1a4b6dbb0f19265df48d27003426309747d31f..d187145e3ddf47974b58740ba2d53cd275abf8bf:/.xsession.d/01-xkb?ds=sidebyside diff --git a/.xsession.d/01-xkb b/.xsession.d/01-xkb index 557ee0b..740395f 100644 --- a/.xsession.d/01-xkb +++ b/.xsession.d/01-xkb @@ -1,2 +1,14 @@ # 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" + +info "loading keymap from $XKBMAPFILE" + +xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}" + +unset XKBDIR XKBMAPFILE + +# vim:ft=zsh