Re: Debug altwin:meta_win
On 18-01-2011, at 14h 03'47", Leandro DUTRA wrote about "Debug altwin:meta_win"
> Hello!
>
> One thing I always used until one year and a half ago did not
> work in a Squeeze installation, from before the release candidate
> these days. I always used XkbOptions altwin:meta_win, so I could have
> the logo (Windows) key as Meta in GNU Emacs and for navigating
> Sawfish, leaving Alt for other applications and for user-defined Emacs
> keybindings.
>
Execute:
xmodmap -e "keycode 0x85 = Meta_L"
xmodmap -e "keycode 0x40 = Alt_L"
xmodmap -e "keycode 0x6C = Alt_R"
xmodmap -e "keycode 0x86 = Meta_R"
xmodmap -e "clear Mod1"
xmodmap -e "clear Mod4"
xmodmap -e "add Mod1 = Alt_L Alt_R"
xmodmap -e "add Mod4 = Meta_L Meta_R"
The first 4 defines the winkeys meta, and the alt keys alt.
man xmodmap gives you iddeas about the keycodes.
You can also put all those in a file, say .xmodmap and load it from
.profile/.xsession.
xmodmap -pke will give you a description of what the keyboard is at
the moment. You can save that in a file and modify it and then feed it
back to xmodmap.
For a graphical version try xkeycaps.
For non-X have a look at /etc/console/boottime.kmap.gz and loadkeys.
Ionel
Reply to: