1

Is there a way to bind AltGr-modifiers to other special characters? I use a UK Macintosh keyboard, but need Norwegian letters. I can access ø and æ with AltGr-o and AltGr-a, but there is no å: /ɔːˀ/. How can I bind this to e.g. AltGr-' ?

I use i3, so I can bind stuff from there too, but Xmodmap would be preffered. Thanks.

GAD3R
  • 66,769
vegarab
  • 211
  • xmodmap should be avoided these days; it will not function in Wayland or other post-X11 contexts. XKB methods will continue to work. – quixotic Dec 19 '17 at 18:24
  • Any idea how to do this with XKB then? @quixotic – vegarab Dec 20 '17 at 00:17
  • there are probably already Compose sequences to provide the letters you need, so setting a compose key option is probably the easiest existing method. if compose isn't an option and you need such letters on level3 and 4 you'd probably have to build your own layout overrides. see /usr/share/X11/xkb/symbols/gb for existing UK layouts. – quixotic Dec 20 '17 at 01:15

1 Answers1

2
keycode 34 = bracketleft braceleft aring Aring aring Aring

Sets aring (å) so AltGr-[, (its position on a norwegian keyboard). For ø oslash and æ ae to be placed in the correct position as well, add:

keycode 47 = semicolon colon oslash Oslash oslash Oslash
keycode 48 = apostrophe quotedbl ae AE ae AE
vegarab
  • 211