From: Silvio Rhatto Date: Mon, 1 May 2017 17:17:03 +0000 (-0300) Subject: Xephyr: set keyboard layout X-Git-Tag: 0.1.0~442 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=f3ad4e5c300a5ea9d010ee40554f4a641ec9bb87;p=kvmx.git Xephyr: set keyboard layout --- diff --git a/kvmx b/kvmx index 293b469..4509a6d 100755 --- a/kvmx +++ b/kvmx @@ -958,7 +958,11 @@ function kvmx_xephyr { Xephyr :$GUEST_DISPLAY -ac -port $XDMCP_PORT -query 127.0.0.1 $resolution &> $XDMCPLOG < /dev/null & # Give time to connect - sleep 5 + sleep 1 + + # Set keyboard layout + # Thanks https://unix.stackexchange.com/questions/304391/xephyr-keyboard-mapping-not-working-properly + setxkbmap -display :0 -print | xkbcomp - :$GUEST_DISPLAY >> $XDMCPLOG # Fix window titles if which /usr/bin/xdotool &> /dev/null; then