[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#201737: map LWIN to Mode_switch



On Tue, Jun 01, 2004 at 06:01:54PM +0200, Sebastian Henschel wrote:
> * Branden Robinson <branden@debian.org> [2004-05-31 19:13 +0200]:
> > All you'll need is this for configuration.
> > 
> > XkbRules	xfree86
> > XkbModel	macintosh
> > XkbLayout	gb
> > 
> > I realized that U.K. Macintosh people are already going to need a way to
> > type the EuroSign as engraved, so people are going to have to learn
> > about a "Mode Switch" or "AltGr" key no matter what.
> > 
> > So I went ahead and treated the number sign as a simple unengraved
> > alternate group keycap, which is probably what everybody wanted in the
> > first place.
> > 
> > I've tested this on my own keyboard and it seems to do what I expect.
> 
> the question is, which should be the key to "mode switch" / "altgr" in
> your configuration? the apple (lwin) key?

Well, that's the downside to this solution.  You have to know by
convention or by reading XKB configuration, as Macintosh keyboards are
not engraved with any such keycap.

$ cat /etc/X11/xkb/symbols/group

// $Xorg: group,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
// using the group(switch) map, the right alt key temporarily chooses 
// the second keyboard group (until it is released).
//
// $XFree86: xc/programs/xkbcomp/symbols/group,v 3.8 2003/01/20 03:48:39 dawes Exp $
partial modifier_keys 
xkb_symbols "switch" {
    key <RALT>	{ 	
	symbols[Group1]= [	Mode_switch, Multi_key 	],
	virtualMods= AltGr
    };
};
[...]

So it's the right Alt key by default.

> actually, i cannot find the file "switch" in my current installation.
> well, i do not know if such a file _should_ exist, anyway. :) so i
> have to map LWIN to do Mode_switch (and Multi_key when shifted)) in
> the file "gb" directly to make it work.  which package should "switch"
> be in? i am currently with many xfree packages from testing (dfsg.1-1)
> and the following from unstable (dfsg.1-4): x-window-system,
> x-window-system-core, xbase-clients, xfree86-common, xlibs,
> xlibs-data, xterm, xutils.

You're looking for a file called "group", with a section "switch", as
pasted above.

-- 
G. Branden Robinson                |    I'm sorry if the following sounds
Debian GNU/Linux                   |    combative and excessively personal,
branden@debian.org                 |    but that's my general style.
http://people.debian.org/~branden/ |    -- Ian Jackson

Attachment: signature.asc
Description: Digital signature


Reply to: