blob: fcc84d9cab3adda9e1b765c130dd71f4f1d7196b (
plain)
1
2
3
4
5
6
7
8
9
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"
|