Being not literate enought to parse Xorg source code, I tested the
following dirty and unreliable hack. The stupid idea is to use xmodmap
only when the Xorg window is displayed, based on my last comment. This
working (for me) should give some support to that comment:

#!/bin/sh


BLAHBLAH
.
.
.
startx
waitforX
export DISPLAY=:0.0
(
export CURTTY=A
until [ $CURTTY -eq 7 ]
do
chvt 7
CURTTY=`fgconsole`
done
xmodmap -display "${DISPLAY}" -v ~/.Xmodmap
) &

...the rest of your script...

This is a horrible workaround, and moreover I occasionally observed Xorg
being just crashed by xmodmap (I can't reproduce that aptly, though).
Allowed me to do what I wanted (reassign the mod key for wmii window
manager, by the way), anyway.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/524774

Title:
  xmodmap failure BadValue error, 118 (X_SetModifierMapping)

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to