On 03.07.11 19:52, andy pugh wrote:
> On 3 July 2011 19:45, Dave Caroline <[email protected]> wrote:
> > this old message tells you enough to choose your keys
> > http://article.gmane.org/gmane.linux.distributions.emc.user/12642
>
> Ooh! I wonder if I can re-map ctrl-space (clear messages?). My
> keyboard doesn't have a Ctrl-key…
Since there is no Ctrl-key, would a general solution for all
applications be handy? As we're running X, if AXIS is in use, then an
easy way to globally map keys is to add an entry to ~/.Xmodmap. Would it
be convenient to use the Alt (Meta) key instead?
While there is some waffle about mapping Meta, under the EXAMPLES
heading in "man xmodmap, it might be easier to just imitate what works
to convert my CapsLock key to Escape:
keycode 0x42 = Escape
clear Lock # Disable Caps-Lock
For the Alt key we only need the keycode reassignment. OK, what is the
keycode?:
$ xmodmap -pk | grep Meta
64 0xffe9 (Alt_L) 0xffe7 (Meta_L) 0xffe9 (Alt_L) 0xffe7 (Meta_L)
108 0xffea (Alt_R) 0xffe8 (Meta_R) 0xffea (Alt_R) 0xffe8 (Meta_R)
205 0x0000 (NoSymbol) 0xffe7 (Meta_L) 0x0000 (NoSymbol)
0xffe7 (Meta_L)
It's 64. (That can be confirmed by running xev, pressing the Alt key, and
ferreting about in the verbose output for the keycode guff.) So a line
resembling this should just about do it:
keycode 0x40 = Control
If that fails, I'd try "Control_L" in place of "Control", since that's
definitely known to xmodmap.
After a reboot (or at least restart of X), the new ~/.Xmodmap should
take effect.
Note: It should also be possible to make the setting something like
this:
$ xmodmap -e 'keycode 0x40 = Control_L'
but I haven't tried it.
If the "windows logo" key appeals more, xev shows it's keycode 133
(0x85) for me. That seems to be called Super_L:
$ xmodmap -pk | egrep '^[ \t]+133'
133 0xffeb (Super_L) 0x0000 (NoSymbol) 0xffeb (Super_L)
Hopefully this provides sufficient tools to make it do what you want,
consistently across all applications.
Erik
--
Lackland's Laws:
(1) Never be first.
(2) Never be last.
(3) Never volunteer for anything
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users