Check configuration
man setxkbmap
shows that
-query With this option setxkbmap just prints the current rules, model, layout, variant, and options, then exits.
so you can check the configuration (and it would help if you post the output) with
setxkbmap -query -v 10
Set configuration
You might need -variant intl
or -variant altgr-intl
.
But again, as per man page
-variant name
Specifies which variant of the keyboard layout should be used to determine the components which make up the keyboard
description. The -variant option may only be used once. Multiple variants can be specified as a comma-separated list
and will be matched with the layouts specified with -layout.
So for instance in my case to change the variant of the third layout from intl
to altgr-intl
I have to use a comma separated list
$ setxkbmap -query
rules: evdev
model: pc105
layout: latam,il,us,us
variant: ,,intl,
$ setxkbmap -variant ,,altgr-intl,
In addition,
you may need to use -model pc105
.
I am not sure -model abnt
is even a valid model (where did yo get that from? I could only find a few, not necessarily reputable sources, using it).
A hint to this assertion is given by
$ find /usr/share/X11/xkb/ -type f -exec grep -nH --color abnt {} \;
/usr/share/X11/xkb/geometry/pc:831:xkb_geometry "abnt2" {
/usr/share/X11/xkb/geometry/pc:886:}; // End of "abnt2" geometry
/usr/share/X11/xkb/symbols/sun_vndr/br:84: xkb_symbols "abnt2" {
/usr/share/X11/xkb/symbols/sun_vndr/br:85: include "br(abnt2)"
/usr/share/X11/xkb/symbols/br:2:xkb_symbols "abnt2" {
/usr/share/X11/xkb/symbols/br:49: include "br(abnt2)"
/usr/share/X11/xkb/symbols/br:66: include "br(abnt2)"
You may combine using Settings -> Region & Language -> Input Sources and choosing / adding an option (e.g., English (US, intl., with dead keys)), and then setxkbmap -query
to see what may be the proper model
and perhaps also rules
.
Notes
Out of curiosity, I checked what character you were getting
$ printf ¨ | recode ..dump
UCS2 Mne Description
00A8 ': diaeresis
You can check available options with (also 1, 2)
man xkeyboard-config
or to cat
instead of paging
man -P cat xkeyboard-config
Old linuxes allowed for using ~/.xinitrc
for permanent configuration (e.g. 3), I am not sure it still works.
I have just asked abnt not listed in xkeyboard-config models
Related
- Keyboard is not configured for pt-BR
- https://forum.mxlinux.org/viewtopic.php?t=45398&start=10
- https://unix.stackexchange.com/questions/519711/portuguese-language-us-keyboard
- How to write in Brazilian Portuguese using a US keyboard?
- One keyboard two languages on Ubuntu 17.10
- https://ubuntu-mate.community/t/problems-typing-portuguese-characters/10827
- Use US(International with dead keys) in i3wm
- https://superuser.com/questions/1029357/how-to-use-altgr-intl-in-kde
- https://manpages.ubuntu.com/manpages/bionic/en/man5/keyboard.5.html
- What file is the setxkbmap option -rules meant to take, and how can I add keyboard variants to that file?
- https://wiki.archlinux.org/title/Xorg/Keyboard_configuration#Using_X_configuration_files
)
. I found four US English variants: 1) English (US), 2) English (US, alt. intl.), 3) English (US. euro on 5), 4) English (US, intl., with dead keys). Of these items 2 and 4 may be of interest to you. – user68186 May 18 '21 at 16:01¨¨
– Diego Macario May 18 '21 at 17:15-variant altgr-intl
and the rest? – sancho.s ReinstateMonicaCellio May 22 '21 at 10:17