You are not logged in.

#1 2011-12-07 23:30:51

ninjah
Member
Registered: 2011-12-07
Posts: 3

Keyboard layout switch in TTY console [SOLVED]

Okay, I've been around Arch for a while now and I'm trying to switch from XFCE4 to console fully.
Everything works pretty smoothly but I have one problem I'm desperately trying to solve for quite a long time.
I need to be able to switch between two keyboard layouts in plain TTY console mode.
The thing is - these layouts are pretty exotic - a swedish and a russian one.
It is relatively easy to choose only one of them in rc.conf and there are some russian layouts around that allow switching to standart US keys
like this one - http://mlclm.narod.ru/ru-utf.map.gz
But all of them are of no use as I'm left without äåö and эюя in any case.
Any suggestions?

Here's my rc.conf, if it helps

LOCALE="ru_RU.UTF-8"
DAEMON_LOCALE="yes"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Stockholm"
KEYMAP="sv-latin1"
CONSOLEFONT="ter-v16n"
CONSOLEMAP=
USECOLOR="yes"

Thanks in advance.

Last edited by ninjah (2011-12-09 22:05:55)

Offline

#2 2011-12-08 07:57:36

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Keyboard layout switch in TTY console [SOLVED]

loadkeys in console mode (without X). setxkbmap in a terminal under X.

Offline

#3 2011-12-08 10:18:46

ninjah
Member
Registered: 2011-12-07
Posts: 3

Re: Keyboard layout switch in TTY console [SOLVED]

Thanks, loadkeys helped.
It still feels pretty annoying to type in "loadkeys sv-latin1" and "loadkeys ru", whenever I want to change layout.
Is it possible to combine them into one keymap and switch between them on-the-go?

Offline

#4 2011-12-08 10:25:11

hesse
Member
Registered: 2011-12-08
Posts: 88

Re: Keyboard layout switch in TTY console [SOLVED]

I wouldn't combine them, but would suggest making a bash alias for switching to each e.g.

$ alias skeys='loadkeys sv-latin1'
$ alias rkeys='loadkeys ru'

You can put these lines in your ~/.bashrc to make them permanent.

Last edited by hesse (2011-12-08 10:26:08)

Offline

#5 2011-12-09 22:04:50

ninjah
Member
Registered: 2011-12-07
Posts: 3

Re: Keyboard layout switch in TTY console [SOLVED]

yeah, thanks, it does the job

Offline

Board footer

Powered by FluxBB