Gnome, xmodmap, Window->Movement Key

Daishi Harada daishi at egcrc.net
Fri Oct 22 20:14:07 UTC 2004


Hi,

I apologize in advance as my issues probably have nothing
to do with Ubuntu specifically, but I am hoping that some of
the helpful people on this list may have some advice.

I have two (probably) related questions. One has been
discussed before in other venues ([1]_, [2]_), and has to
do with the "proper" way of remapping key->keysym
under Gnome, given that what I want is not available in
Keyboard->Layout Options. I have taken the suggestion
in [1]_ of just calling xmodmap manually from
Sessions->Startup Programs, but this seems less
than ideal, and may be the cause of my second problem.

The second problem that I have is that my selection
in Window->Movement Key (Hyper) is not honored when
I initially log in and start my Gnome session. What I have
to do is to open the Window desktop preference and to
switch to another key, and then switch back to what I
want.

My (random) guess as to what may be happening is
that when one selects Hyper in Window->Movement Key,
what Gnome actually does is binds the movement key
to mod4 (which is where afaict Gnome puts Hyper by
default). My xmodmap puts Hyper on mod3, which is
then not rebound to the movement key (my xmodmap
is called with session order 90). I'm guessing that when
I manually set the key after my session has started, it
re-looksup what Hyper is (now mod3), and then "does
the right thing". I tried changing the session order of the
xmodmap earlier to 10, but then Gnome overrides my
xmodmap settings altogether.

In terms of wishful thinking, it would be nice to at
some point have something comparable to xkeycaps [3]_
available through the Gnome Keyboard configuration
window. While I'm dreaming, it would also be nice
if one could specify the mapping on a per-keyboard
basis (like uControl [4]_), so that, e.g., when you
have a USB keyboard attached to your laptop you
can rebind things separately as appropriate.

tia,d

ps. What is a "Third level chooser"?

.. [1] http://lists.debian.org/debian-gtk-gnome/2004/07/msg00043.html
.. [2] http://mail.gnome.org/archives/gnome-list/2004-June/msg00052.html
.. [3] http://www.jwz.org/xkeycaps/
.. [4] http://gnufoo.org/ucontrol/





More information about the ubuntu-users mailing list