aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-01 14:17:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-01 14:17:03 -0300
commitf3ad4e5c300a5ea9d010ee40554f4a641ec9bb87 (patch)
tree29149f3a75802919608adef0c86b998a0e11c9ba /kvmx
parent4cf2f1d7600133fe69d701facc93a3bc61f5646b (diff)
downloadkvmx-f3ad4e5c300a5ea9d010ee40554f4a641ec9bb87.tar.gz
kvmx-f3ad4e5c300a5ea9d010ee40554f4a641ec9bb87.tar.bz2
Xephyr: set keyboard layout
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx6
1 files changed, 5 insertions, 1 deletions
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