Last active
January 25, 2017 16:25
-
-
Save nilstoedtmann/48afc70208cf00e0578f55409430fbbe to your computer and use it in GitHub Desktop.
Add German umlauts and currency signs to current key map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! | |
! Add German diaereses (Umlauts) and some currency signs to current keymap | |
! as <AltGr> alternatives to related English letter keys, e.g. | |
! | |
! <AltGr>-<A> = ä | |
! <AltGr>-<Shift>-<A> = Ä | |
! | |
! Load with "xmodmap .Xmodmap-AddUmlauts" | |
! | |
! ---------------------------------------------------------------- | |
! NOTE: | |
! | |
! ONLY works with some keyboard layouts, like "gb" or "us(altgr-intl)". | |
! | |
! Layouts that do not map <AltGr> (usually keycode 92 or 108) to | |
! ISO_Level3_Shift but e.g. ALT_R can't work, e.g. "us". | |
! | |
! For yet unknown reason, even some layouts that do map <AltGr> to | |
! ISO_Level3_Shift do not work, e.g. "us(alt-intl)" | |
! ---------------------------------------------------------------- | |
! | |
keycode 26 = e E e E EuroSign EuroSign | |
keycode 30 = u U u U udiaeresis Udiaeresis | |
keycode 32 = o O o O odiaeresis Odiaeresis | |
keycode 38 = a A a A adiaeresis Adiaeresis | |
keycode 39 = s S s S ssharp section | |
keycode 46 = l L l L sterling sterling |
Helpful to find out the standard name and variant of your current layout, use setxkbmap -query
. E.g. English (US, alternative international) is us(alt-intl)
:
$ setxkbmap -query
rules: evdev
model: pc105
layout: us,gb,us
variant: alt-intl,,
options: lv3:caps_switch,compose:sclk,grp_led:caps,terminate:ctrl_alt_bksp
Switching on the command line is easy, e.g.
setxkbmap 'us(alt-intl)'
Another way that integrates better with Unity/Gnome: https://gist.github.com/nilstoedtmann/e9de2394194a6c8381a4daaf13b79919
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It might not work to simply save this as ~/.Xmodmap to have it auto-loaded, at least not with Unity and its layout-switcher applet present.