You are not logged in.

#1 2017-03-24 05:37:53

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

[solved] how to create custom console keyboard map (like us-acentos) ?

After a lot of google searches I find plenty of entries like "creating custom keyboard layouts for X11 using XKB" but nothing relevant for the console (I mean without X11 installed).

Even the wiki has entries @ https://wiki.archlinux.org/index.php/Ke … in_console detailing how to add extra keyboard keys but says almost nothing for a pure console environment.

I'm currently using the us-acentos.map which is a text file located on /usr/share/kbd/keymaps/i386/qwerty/us-acentos.map.gz; eg:

# us-acentos.map
# Equivalente ao mapa us, incluindo dead_keys e composições
# dos caracteres acentuados
# Arnaldo Carvalho de Melo <acme@conectiva.com.br>
#
keymaps 0-2,4-6,8-9,12
keycode   1 = Escape           Escape          
	alt	keycode   1 = Meta_Escape     
keycode   2 = one              exclam          
	alt	keycode   2 = Meta_one        
	shift	alt	keycode   2 = Meta_exclam     
keycode   3 = two              at               at               nul              nul             
	alt	keycode   3 = Meta_two        
	shift	alt	keycode   3 = Meta_at         
keycode   4 = three            numbersign      
	control	keycode   4 = Escape          
	alt	keycode   4 = Meta_three      
	shift	alt	keycode   4 = Meta_numbersign

...

I can copy and edit the file; the problem is (although some things are obvious) I can't find any relevant documentation on the format/syntax used.

On Windows I used the Microsoft KLC (keyboard layout creator) and at least I see a couple of options for linux but they are all intended for X like the one from the google summer of code.

Can anyone point me in the right direction please ?

Last edited by ivanborodin (2017-03-24 06:14:18)

Offline

#2 2017-03-24 05:46:58

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

Re: [solved] how to create custom console keyboard map (like us-acentos) ?

That page has exactly the information you need:
https://wiki.archlinux.org/index.php/Ke … figuration


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-03-24 05:52:11

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [solved] how to create custom console keyboard map (like us-acentos) ?

Do you mean the section you linked to titled "persistent configuration" ?

For what I see it says how to select and sets a given keymap (persistent meaning keeping it at reboot I guess) which I did long time ago.

What I want to do now is create-anew/customize a keymap. I know how to select it and keep it afterwards.

Am I missing something ?

Offline

#4 2017-03-24 06:01:49

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

Re: [solved] how to create custom console keyboard map (like us-acentos) ?

You rename the file that you want to adapt, hack it to fit your requirements and then make it your default.

See `man keymaps` for the hacking part...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-03-24 06:11:19

ivanborodin
Member
Registered: 2013-08-30
Posts: 58

Re: [solved] how to create custom console keyboard map (like us-acentos) ?

man keymaps ... this is what I was looking for.

Thanks for your reply Jason smile !

Offline

Board footer

Powered by FluxBB