]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Xephyr: set keyboard layout
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 1 May 2017 17:17:03 +0000 (14:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 1 May 2017 17:17:03 +0000 (14:17 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 293b469e8bf9bb779f84748fea98548e388065a7..4509a6dab072d6cec849b51ab49656fe266ca449 100755 (executable)
--- 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