You are not logged in.

#1 2021-07-15 23:38:54

j@s0n
Member
Registered: 2020-08-15
Posts: 35

What's the proper way to configure an alternative keyboard in X?

I'm running xorg-server 1.20.12-1.
I configured my computer to use the Dvorak keyboard layout and normally everything works as expected. However, I run a KVM switch to share the keyboard with my gaming PC (windows 10) and work PC (Debian based). When I switch the KVM back to my Arch computer, the keyboard layout switches back to Qwerty, but only under X. If I go to tty2 (or 3, etc) the keyboard layout is still Dvorak. I have to run setxkbmap to reset my keyboard.

Did I not configure the keyboard properly? And why would it change like this?



I wasn't sure if this should be in the Installation or Hardware section, so I just picked one.

Offline

#2 2021-07-15 23:54:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: What's the proper way to configure an alternative keyboard in X?

How exactly did you configure the dvorak layout on X? if you run setxkeymap once during xorg init then this won't be reapplied to the "new" keyboard after the switch. You'll want a config snippet that reapplies dvorak each time the keyboard is connected, which is explained in e.g.: https://wiki.archlinux.org/title/Xorg/K … tion_files

Last edited by V1del (2021-07-15 23:55:10)

Offline

#3 2021-07-15 23:55:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: What's the proper way to configure an alternative keyboard in X?

https://wiki.archlinux.org/title/Xorg/K … ard_layout

#edit: Installation is for installing the Arch system...

Last edited by jasonwryan (2021-07-15 23:56:43)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB