Skip to main content
Topic: Configuring my keymap (Read 3992 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Configuring my keymap

I`ve just installed artix and I use my OS in english so it is easier to find error messages on the internet and also to practice the language. However my keyboard must be according to the brazilian standard (br-abnt2). The way I used to configure in arch linux solved the problem but here I don`t know why is not working:

Running on terminal:

Code: [Select]
loadkeys br-abnt2

is not solving the problem and I`ve also created a /etc/vconsole.conf with

Quote
KEYMAP=br-abnt2

and my /etc/locale.conf has:

Quote
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
export KEYMAP="br-abnt2"

I really don`t know from which of these two it will get my keymap conf but nothing is working. Any help please?

Re: Configuring my keymap

Reply #1
/etc/X11/xorg.conf.d/00-keyboard.conf

Code: [Select]
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,br"  ##  <<<------   edit this to the right one
        Option "XkbModel" "pc105"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

edit as necessary but this works on everything after X starts.
You will have to restart X or reboot for it to go on effect
You use alt-shift to switch between the two and both languages en_us and pt_br  have to be on /etc/locale.gen

Code: [Select]
en_US.UTF-8 UTF-8 
pt_BR.UTF-8 UTF-8 
#pt_BR ISO-8859-1 

then run:
Code: [Select]
% sudo locale-gen

Re: Configuring my keymap

Reply #2
Are you using Artix OpenRC or Artix-runit? If you're on OpenRC, /etc/vconsole.conf is not supported. You need to follow this instruction instead.
now only the dinit guy in artix

Re: Configuring my keymap

Reply #3
 setxkbmap -option ctrl:nocaps

in bashrc