aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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