3

Normally, I can find solutions by just googling around, but I can't find any decent documentation for xkbdmap except for the grossly inadequate man page.

Perhaps I'm going about this the wrong way. I have a US 105 plain old keyboard that does not have an AltGR key. To the right of the space bar, I have Alt, Windows key, some sort of menu key, and then a Control key.

(what's the point of the Windows key and the Menu key - does anyone actually use those?)

Apparently, some keyboard have another key which is the AltGR key. That with E would give you a Euro symbol for instance, apparently.

Because my keyboard doesn't have this key, I thought to use the xkbdmap command like this:

xkbdmap altgr:rwin

Why does this not work?

Volker Siegel
  • 3,277
  • 2
  • 24
  • 35
Mike
  • 2,393
  • 3
  • 25
  • 37
  • Vista/Win7 have made the Win key(s) actually useful instead of just wastes of space. There's a ton of new keyboard shortcuts you can use with them: http://support.microsoft.com/kb/126449 – Marc B Oct 17 '11 at 20:21

1 Answers1

4

There's no xkbdmap command in the standard xorg distribution. You probably can use xmodmap but generally things are done slightly differently in the X11 land nowadays. If you use XKB (everybody uses XKB now) then there are virtual modifiers such as "compose" and "meta" and "level 3 chooser" which are mapped to real keys. This is done with the setxkbmap command. You probably want either

setxkbmap -option -option compose:rwin

or

setxkbmap -option -option lv3:rwin_switch,eurosign:e

depending on what exactly you want. Google setxkbmap options to figure out your possibilities.

(The first empty -option argument clears existing options, the second one adds to existing options. If you want to keep existing options, skip the first -option. Current options are stored in the properties of the root window.)

Note that most keyboards that have AltGr lack the right Alt key. If you want your right Alt to act like AltGr, change rwin to ralt in the above commands.

n. m. could be an AI
  • 112,515
  • 14
  • 128
  • 243
  • Thanks! I actually had meant setxkbmap, xkbdmap I must have copy pasted from one of the many sites about keyboard settings. The magic here is "lv3" and "rwin_switch". I was horsing around with just "rwin" and didn't know about "lv3". Normally I can google my way around, but to me anyway, but this solution I could not find anywhere. Anywho, kudos for taking the effort! – Mike Oct 28 '11 at 20:13