You are not logged in.

#1 2024-10-12 19:43:38

iaguara
Member
From: Brazil
Registered: 2022-08-14
Posts: 2

[Solved] Set a X11 keyboard layout to the Linux console

Hello,
I have a keyboard whose layout (variant) is uncommon as far as I know. I can choose this layout to use on graphical interfaces, but there is not a option to use on the Linux console/VC.
I could create a custom one, but, in another machine I have (with Alpine Linux), I could choose that layout to use on console.

So, is there a package that adds more keymaps and was not mentioned on the wiki?
Or if I do need to write it myself, is there a chart, a list or something that helps me do that? This seems complex to me.

I have already searched with

localectl list-keymaps

, and this is my current

localectl status

(I want to use the br-nativo on the console):

archlinux% localectl status                  
System Locale: LANG=pt_BR.UTF-8
    VC Keymap: us
   X11 Layout: br,us
    X11 Model: pc105
  X11 Variant: nativo,altgr-intl
  X11 Options: grp:win_space_toggle

That's it. And forgive my english, I am not fluent yet.

Last edited by iaguara (2024-10-14 02:32:47)

Offline

#2 2024-10-13 11:36:30

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,981

Re: [Solved] Set a X11 keyboard layout to the Linux console

$ find /usr/share/kbd/keymaps/ -type f -name "*br*"
/usr/share/kbd/keymaps/i386/qwerty/br-latin1-us.map.gz
/usr/share/kbd/keymaps/i386/qwerty/br-latin1-abnt2.map.gz
/usr/share/kbd/keymaps/i386/qwerty/br-abnt2.map.gz
/usr/share/kbd/keymaps/i386/qwerty/br-abnt.map.gz
$ 

Have you tried all 4 keymaps ?

Last edited by Lone_Wolf (2024-10-13 11:37:40)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-10-13 11:47:22

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,345
Website

Re: [Solved] Set a X11 keyboard layout to the Linux console

Looks like the Alpine package complies extra local keymap variants:

https://gitlab.alpinelinux.org/alpine/a … #L102-L112

The OP could add that to the Arch PKGBUILD (or submit a feature request).


Para todos todo, para nosotros nada

Offline

#4 2024-10-14 02:30:29

iaguara
Member
From: Brazil
Registered: 2022-08-14
Posts: 2

Re: [Solved] Set a X11 keyboard layout to the Linux console

Lone_Wolf wrote:

Have you tried all 4 keymaps ?

Yes I had, and by some reason these 4 are almost the same.

Head_on_a_Stick wrote:

Looks like the Alpine package complies extra local keymap variants: ...

This was strangely useful, I see they use the ckbcomp command to convert and there is a AUR package for this program.

Installing that, I was able to convert writing this, as that script does:

$ ckbcomp "br" "nativo" | gzip > /usr/local/share/kbd/keymaps/br-nativo.map.gz

And changing my /etc/vconsole.conf to:

KEYMAP=/usr/local/share/kbd/keymaps/br-nativo

If you are doing the same as I did, you need to change the "br" to your country code or language and changing "nativo" to the variant you want, in both commands.

Now it works as I wanted. Thank you for replying.

Offline

Board footer

Powered by FluxBB