Table of Contents

Layout-switching in the Console

The command loadkeys can be used to set a new layout. The following outline explains how to implement such a mechanism in dCore, specifically how to make the necessary files available.

Installing

Storing the key-map-files

The necessary key-map files are stored away and made persistent.

Hint: if you should have loaded a non-functional keyboard layout, use the arrow-up key to get back to the line loading the US-layout.

Notes

Testing

Loading any such key-map with loadkeys should switch keyboard layout, e.g. sudo loadkeys /opt/sys/keymaps/us.kmap.

Warning about log-in prompt

The man-page of loadkeys explains a possible side-effect of changing the keyboard-layout in the console. “Note that because the changes affect all the virtual consoles, they also outlive your session. This means that even at the login prompt the key bindings may not be what the user expects.”

Persistence

Add the name of the directory, e.g. “opt/sys/keymaps” to '.filetool.lst' and issue backup.

Personalisation

Standard layout

In order to specify a standard layout for the console, add the following to '~/.profile'.

~/.profile:
sudo loadkeys <KMAP>

The US-keyboard layout is used as default if nothing else is specified so this step can be omitted if that layout should be used by default.

Aliases

In order to quickly switch between layout, add something like the following to '~/.ashrc'.

~/.ashrc:
alias us='sudo loadkeys /opt/sys/keymaps/us.kmap'
alias <CODE>='sudo loadkeys <KMAP>'

Keyboard Layout - Tinycore way

  1. Download http://tinycorelinux.net/6.x/x86/tcz/kmaps.tcz and save it in the sce dir as kmaps.sce
  2. Add kmaps to sceboot.lst
  3. Add your layout to the boot options on your bootloader, for example kmap=qwerty/it

A list of available keyboard codes can be seen in the content list of kmaps.tcz.