diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-30 17:30:50 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-30 17:30:50 +0100 |
commit | 814da25dfa191482e1b0bf614eb064c85a3233b0 (patch) | |
tree | 9483286dc9fb86ad5a8f860bb259703c41892b15 /packages/xserver-common/files/98keymap-fixup | |
parent | 49345c6250c7f1708f35b15ecb673d42702bc553 (diff) |
xserver-common: add workaround for xmodmap problems with kdrive 1.4+
Diffstat (limited to 'packages/xserver-common/files/98keymap-fixup')
-rwxr-xr-x | packages/xserver-common/files/98keymap-fixup | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/xserver-common/files/98keymap-fixup b/packages/xserver-common/files/98keymap-fixup new file mode 100755 index 0000000000..fcc84d9cab --- /dev/null +++ b/packages/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" |