Skip to main content
Topic: keymap change in X/Openbox (Read 613 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

keymap change in X/Openbox

My first post on this forum, hello everyone :-)
Running Artix for last couple of weeks, generally working as expected, just couple of small annoyances...

keymap - i set it wrong during setup, managed to configure right one (uk) by changing
/etc/conf.d/keymaps, works good under TTY but not on xsession.
I`m not using a session manager, starting X on login by .xinitrc and .bashrc in home folder.
Any tips on that?
Thanks,

Quote
[nbd@artixlinux ~]$ cat /etc/conf.d/keymaps

keymap="uk"
windowkeys="yes"
extended_keymaps=""
dumpkeys_charset=""
fix_euro="NO"


Quote
[nbd@artixlinux ~]$ cat /home/nbd/.xinitrc
xbindkeys
openbox-session




Re: keymap change in X/Openbox

Reply #1
setting keyboard for X session is done normally through /etc/X11/xorg.conf.d/00-keyboard.conf

Code: [Select]
 cat /etc X11/xorg.conf.d/00-keyboard.conf 
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "uk"
EndSection

as decribed here https://wiki.archlinux.org/index.php/Xorg/Keyboard_configuration#Setting_keyboard_layout

I use /etc X11/xorg.conf.d/00-keyboard.conf  and have no problem

but you can use setxkbmap too. Just follow wiki.archlinux.org as usually ;-)