From 99cb4ddbf70afb196ad36f16ea3d3243bb7f66d9 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 9 Nov 2016 12:56:58 +0100 Subject: [PATCH 1/1] enable vcsh hooks --- .config/vcsh/hooks-available/xsession.post-run+enter | 4 ++++ .config/vcsh/hooks-enabled/xsession.post-enter | 1 + .config/vcsh/hooks-enabled/xsession.post-run | 1 + .xsession.d/01-xkb | 6 ++---- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100755 .config/vcsh/hooks-available/xsession.post-run+enter create mode 120000 .config/vcsh/hooks-enabled/xsession.post-enter create mode 120000 .config/vcsh/hooks-enabled/xsession.post-run diff --git a/.config/vcsh/hooks-available/xsession.post-run+enter b/.config/vcsh/hooks-available/xsession.post-run+enter new file mode 100755 index 0000000..1a0f8df --- /dev/null +++ b/.config/vcsh/hooks-available/xsession.post-run+enter @@ -0,0 +1,4 @@ +#!/bin/sh +for i in ~/.xsession.d/0*; do + . $i +done diff --git a/.config/vcsh/hooks-enabled/xsession.post-enter b/.config/vcsh/hooks-enabled/xsession.post-enter new file mode 120000 index 0000000..ba14497 --- /dev/null +++ b/.config/vcsh/hooks-enabled/xsession.post-enter @@ -0,0 +1 @@ +../hooks-available/xsession.post-run+enter \ No newline at end of file diff --git a/.config/vcsh/hooks-enabled/xsession.post-run b/.config/vcsh/hooks-enabled/xsession.post-run new file mode 120000 index 0000000..ba14497 --- /dev/null +++ b/.config/vcsh/hooks-enabled/xsession.post-run @@ -0,0 +1 @@ +../hooks-available/xsession.post-run+enter \ No newline at end of file diff --git a/.xsession.d/01-xkb b/.xsession.d/01-xkb index 740395f..1427ef9 100644 --- a/.xsession.d/01-xkb +++ b/.xsession.d/01-xkb @@ -3,11 +3,9 @@ XKBDIR="$HOME/.xkb" #XKBMAPFILE="$XKBDIR/keymap/${(%):-%M}" XKBMAPFILE="$XKBDIR/keymap/$(hostname --fqdn)" -[[ -r "$XKBMAPFILE" ]] || XKBMAPFILE="${XKBMAPFILE%/*}/default" +[ -r "$XKBMAPFILE" ] || XKBMAPFILE="${XKBMAPFILE%/*}/default" -info "loading keymap from $XKBMAPFILE" - -xkbcomp -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}" +xkbcomp -w3 -I"$XKBDIR" "$XKBMAPFILE" "${DISPLAY%%.*}" unset XKBDIR XKBMAPFILE -- 2.39.5