You are not logged in.
Hi, I tried to use the altgr-intl trick to write german Umlaute on a US layout (see e.g. https://bbs.archlinux.org/viewtopic.php?id=133522 or https://zuttobenkyou.wordpress.com/2011 … rd-layout/).
So I use the Xkb_Variant alt-intl option:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "Xkb_Variant" "altgr-intl"
EndSectionBut it doesn't work!? I couldn't figure out what kind of input altgr_intl is expecting.
When checking my alt keys with xev then I get for the right (which is the AltGr key) and left alt key:
state 0x8, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
...
state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,What do you get when you press your AltGr key?
Last edited by rgzfxf6bhu (2016-07-12 19:20:31)
Offline
What does `setxkbmap -query` say you're actually using? Maybe your window manager / desktop environment changes settings.
You could also use the compose key... compose " a = ä, compose s s = ß
my altgr (on a german keyboard) is this:
state 0x0, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,Last edited by frostschutz (2016-07-12 11:08:53)
Offline
Oh setxkbmap -query says:
rules: evdev
model: pc105
layout: us,us
variant: ,
options: terminate:ctrl_alt_bkspEven though my /etc/X11/xorg.conf.d/00-keyboard.conf still has:
...
Option "Xkb_Variant" "altgr-intl"
...Hmmm still not sure what are steps to solve it?
Offline
So does it work when you manually `setxkbmap us altgr-intl`?
What are you using as window manager / desktop environment / additional input methods like uim,scim,fcitx,...?
Unfortunately it's hard to find out exactly what changes the keyboard layout after X11 startup. In the best case it's just a matter of going into the keyboard settings of your DE. Worst case you have to go through the "graphical" bootup sequence step by step... there is no generic answer here as any process could change it when it felt like it
Offline
Thanks for your answer
setxkbmap us altgr-intl works.
[edit:]
Seems that I was too quick, it doesn't survive a reboot.
I use GNOME, and I thought that systemd-localed controls the key mapping.
I thought that the correct way to do it must be localectl set-x11-keymap us pc105+inet altgr-intl terminate:ctrl_alt_bksp.
Then I get with localectl status:
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Variant: altgr-intl
X11 Options: terminate:ctrl_alt_bkspAnd /etc/X11/xorg.conf.d/00-keyboard.conf:
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us"
Option "XkbModel" "pc105+inet"
Option "XkbVariant" "altgr-intl"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSectionBut it didn't work!
Using setxkbmap us altgr-intl manually works.
But at the end it is GNOME that is overwriting the xkb settings:
So I had to change GNOME settings. See http://unix.stackexchange.com/questions … figuration
Now it works
Thanks a lot frostschutz!
Last edited by rgzfxf6bhu (2016-07-12 20:18:50)
Offline