You are not logged in.

#1 2011-05-02 12:57:37

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

[Solved] GB locale with PL keyboard

I want to use en_GB.UTF-8 locale but with Polish keyboard.
How do I go about it? the file "/usr/share/kbd/keymaps" listed in rc.conf does not exist.

Last edited by Lockheed (2011-05-03 07:34:33)

Offline

#2 2011-05-02 13:34:03

JHeaton
Member
From: United Kingdom
Registered: 2009-05-16
Posts: 158

Re: [Solved] GB locale with PL keyboard

/usr/share/kbd/keymaps isn't a file, but a folder (containing more). I'm guessing the type of keyboard is qwerty, in which case the list of keymaps will be in /usr/share/kbd/keymaps/i386/qwerty. If you list the contents of that directory you'll be able to see what's available - my guess is that it would be one of the pl ones, but I've never used a Polish keyboard so I'm guessing there, too. tongue

Hope that helps.

Offline

#3 2011-05-02 14:03:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] GB locale with PL keyboard

IIRC the settings in rc.conf are for the console, so you need to set up for X separately in e.g. .xinitrc (I have 'setxkbmap pl' but you may change it).
I have

LOCALE="pl_PL.UTF-8"
TIMEZONE="Europe/Warsaw"
KEYMAP="pl"
CONSOLEFONT="Lat2-Terminus16"
CONSOLEMAP="8859-2"
[karol@black ~]$ locale
LANG=pl_PL.UTF-8
LC_CTYPE="pl_PL.UTF-8"
LC_NUMERIC="pl_PL.UTF-8"
LC_TIME="pl_PL.UTF-8"
LC_COLLATE="pl_PL.UTF-8"
LC_MONETARY="pl_PL.UTF-8"
LC_MESSAGES=C
LC_PAPER="pl_PL.UTF-8"
LC_NAME="pl_PL.UTF-8"
LC_ADDRESS="pl_PL.UTF-8"
LC_TELEPHONE="pl_PL.UTF-8"
LC_MEASUREMENT="pl_PL.UTF-8"
LC_IDENTIFICATION="pl_PL.UTF-8"
LC_ALL=

You need to enable locale you want to use https://wiki.archlinux.org/index.php/Locale 'locale -a' will tell you which ones are available atm.

[karol@black ~]$ locale -a
C
en_DK
en_DK.iso88591
en_DK.utf8
en_US
en_US.iso88591
en_US.utf8
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish
POSIX

Offline

#4 2011-05-02 14:09:20

Lockheed
Member
Registered: 2010-03-16
Posts: 1,512

Re: [Solved] GB locale with PL keyboard

Yeah, I know about locale. It is en_GB and I already have it enabled.
setxkbmap pl seem to be doing the job (Thanks) but I have some strange extra letter under Alt+P. It is þþþþþþþ

Last edited by Lockheed (2011-05-02 14:10:10)

Offline

Board footer

Powered by FluxBB