On Thu, Jun 20, 2002 at 04:20:22PM -0400, Daniel Burrows wrote:
> Hi,
>
> I'm testing the XFree86 4.2 packages, and the first thing I noticed
> (within a few seconds of setting them up) is that none of my keybindings
> work; for instance, the one I use to pop up a new xterm (Alt-t) or the
> one I use to move windows (Meta-Button1).
>
> A few seconds of experimentation revealed the problem: the new X
> version maps my Alt key to Meta; Alt now works for Meta bindings, and
> the Alt bindings seem to be completely inaccessible.
>
> I have the following in XF86Config; this is unchanged from the
> previous X version:
> Option "XkbRules" "xfree86"
> Option "XkbModel" "pc104"
> Option "XkbLayout" "us"
> Option "XkbCompat" ""
Upstream changed things again. You want to play with the altwin symbols
file:
// $XFree86: xc/programs/xkbcomp/symbols/altwin,v 1.4 2001/10/10 19:18:32 herrb Exp $
partial modifier_keys
xkb_symbols "meta_alt" {
key <LALT> { [ Alt_L, Meta_L ] };
key <RALT> { [ Alt_R, Meta_R ] };
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
// modifier_map Mod4 {};
};
partial modifier_keys
xkb_symbols "meta_win" {
key <LALT> { [ Alt_L, Alt_L ] };
key <RALT> { [ Alt_R, Alt_R ] };
key <LWIN> { [ Meta_L ] };
key <RWIN> { [ Meta_R ] };
modifier_map Mod1 { Alt_L, Alt_R };
modifier_map Mod4 { Meta_L, Meta_R };
};
partial modifier_keys
xkb_symbols "left_meta_win" {
key <LALT> { [ Alt_L, Alt_L ] };
key <LWIN> { [ Meta_L ] };
modifier_map Mod1 { Alt_L };
modifier_map Mod4 { Meta_L };
};
partial modifier_keys
xkb_symbols "super_win" {
key <LWIN> { [ Super_L ] };
key <RWIN> { [ Super_R ] };
modifier_map Mod4 { Super_L, Super_R };
};
partial modifier_keys
xkb_symbols "hyper_win" {
key <LWIN> { [ Hyper_L ] };
key <RWIN> { [ Hyper_R ] };
modifier_map Mod4 { Hyper_L, Hyper_R };
};
// Use Menu for the menu key
partial modifier_keys
xkb_symbols "menu" {
key <MENU> { [ Menu ] };
};
You can access these via the XkbOptions parameter, e.g.:
Option "XkbOptions" "altwin:meta_alt"
BTW, get rid of that XkbCompat option. You're mixing and matching the
XKB configuration hierarchies.
--
G. Branden Robinson | Q: How does a Unix guru have sex?
Debian GNU/Linux | A: unzip;strip;touch;finger;mount;
branden@debian.org | fsck;more;yes;fsck;fsck;fsck;
http://people.debian.org/~branden/ | umount;sleep
Attachment:
pgpTCtnwGg7zF.pgp
Description: PGP signature