aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/xserver-common/files/98keymap-fixup
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/xserver-common/files/98keymap-fixup')
-rwxr-xr-xrecipes/xserver-common/files/98keymap-fixup10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/xserver-common/files/98keymap-fixup b/recipes/xserver-common/files/98keymap-fixup
new file mode 100755
index 0000000000..fcc84d9cab
--- /dev/null
+++ b/recipes/xserver-common/files/98keymap-fixup
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# kdrive 1.4 and up have a heisenbug where it may take multiple tries to apply a modmap
+iter=0
+while [ $(xmodmap -pke | awk '{if ($2 == 36) { if ($4 == "Return") { print "good" } else {print "bad" }}}') = "bad" ] ; do
+ xmodmap - </etc/X11/default.xmodmap
+ let iter=iter+1
+done
+
+echo "modmap applied after $iter additional tries"