You are not logged in.

#1 2023-06-07 22:04:56

kumala
Member
Registered: 2016-03-11
Posts: 22

[solved] How to use Caps Lock as Control from within a KMSCON console?

I have followed the wiki in order to create my custom keymap by modifying the US keymap and setting the Caps Lock key to be the Control key.
Then I load the keymap with /etc/vconsole.conf.

So far so good, it works great from within the console (no X or Wayland).

Now I have just switched my TTY2 to use KMSCON to get better looking fonts in the console by following the wiki : https://wiki.archlinux.org/title/KMSCON

That also work well. But in this KMSCON I understand the vconsole.conf has no effect and my custom keymap does not get loaded.
When I try to load my keymap manually with loadkeys /usr/share/kbd/keymaps/personal_us.map I get the message :

Couldn't get a file descriptor referring to the console.

After some research I was unable to find the proper way to configure this console to use Caps Lock as a Control key.
Any hints would be appreciated.

Thanks.

Last edited by kumala (2023-06-08 08:57:42)

Offline

#2 2023-06-07 22:11:45

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [solved] How to use Caps Lock as Control from within a KMSCON console?

Offline

#3 2023-06-07 23:05:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,471
Website

Re: [solved] How to use Caps Lock as Control from within a KMSCON console?

If you haven't made other changes, there's no need for the full keymap, just set the single option for kmscon with "--xkb-options caps:escape"


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-06-08 08:59:17

kumala
Member
Registered: 2016-03-11
Posts: 22

Re: [solved] How to use Caps Lock as Control from within a KMSCON console?

Thanks to you both. Indeed that works perfectly with xkb.

Offline

Board footer

Powered by FluxBB