SOLVED! install other keyboard layouts in LXDE

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ccc

SOLVED! install other keyboard layouts in LXDE

Post by ccc »

hi

Howto install other keyboard layouts in LXDE, so I can change to each country, that I want?
BTW I need for sure US, DE and CH layout.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
ccc

Re: install other keyboard layouts in LXDE

Post by ccc »

Code: Select all

To add the functionality of multiple keyboards, first add (as root) to the autostart file (see Section 16) your language choices, for example, for US and French, add
   @setxkbmap -layout "us,fr" .
Thx a lot, but should I add this entry:

Code: Select all

 @setxkbmap -layout "us,de,ch" 
in /etc/xdg/lxsession/lubuntu/autostart and that's it?
seppalta

Re: install other keyboard layouts in LXDE

Post by seppalta »

"To finalize the procedure, right click a panel (taskbar) and add Keyboard Layout Switcher (see Section 4). The flag of the default keyboard country will appear on the panel. When clicked the keyboard will change and the icon should display a new flag."
goetzkluge
Level 3
Level 3
Posts: 117
Joined: Thu Nov 15, 2007 9:41 am
Location: Germany
Contact:

Re: install other keyboard layouts in LXDE

Post by goetzkluge »

ccc wrote:

Code: Select all

To add the functionality of multiple keyboards, first add (as root) to the autostart file (see Section 16) your language choices, for example, for US and French, add
   @setxkbmap -layout "us,fr" .
Thx a lot, but should I add this entry:

Code: Select all

 @setxkbmap -layout "us,de,ch" 
in /etc/xdg/lxsession/lubuntu/autostart and that's it?
Thank you. That helped me to enable in LXDE switching between
- us
- us intl
- de
.

Code: Select all

@setxkbmap -layout "us,us,de" -variant ",altgr-intl,"
in /etc/xdg/lxsession/Mint-LXDE/autoconf works (Mint LXDE 12).

(In the task bar, the keyboard switcher display unfortunately doesn't indicate the difference between us and us-intl, but that is a minor issue.)
Mihujoy

Re: install other keyboard layouts in LXDE

Post by Mihujoy »

Hello, I have done the same but it seems each time I so a restart it has only US keyboard. Is there something else I need to do?
goetzkluge
Level 3
Level 3
Posts: 117
Joined: Thu Nov 15, 2007 9:41 am
Location: Germany
Contact:

Re: install other keyboard layouts in LXDE

Post by goetzkluge »

Mihujoy wrote:Hello, I have done the same but it seems each time I so a restart it has only US keyboard. Is there something else I need to do?
After it worked initially, I now have the same problem as described by you.
There seem to be many places where keyboard settings are made by different applications.


Best regards frrom Munich
Goetz
ccc

Re: install other keyboard layouts in LXDE

Post by ccc »

I changed in /etc/default/keyboard:

Code: Select all

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,de,ch"
XKBVARIANT="nodeadkeys"
XKBOPTIONS=""

BACKSPACE="guess"
and now it seems to work.
goetzkluge
Level 3
Level 3
Posts: 117
Joined: Thu Nov 15, 2007 9:41 am
Location: Germany
Contact:

倉頡/注音鍵盤 (Keyboard (Taiwan))

Post by goetzkluge »

Thank you, ccc: I'll try that out. Strangely presently my choices (US-English, US-English international, German) sometimes worke and sometimes don't work than it's (US-English, US-English, German). There also may be a conflict with SCIM (Chinese for my wife, Japanese for me). And there surely will be a conlict with IBUS and GCIN (yet not as good as SCIM, but SCIM hasn't upstrem support anymore). As I have no time for experiments, I use the German keyboard for German and probably later will try out Mageia and check, whether they continue the excellent multi language support which their "ancestors" had in the past.

My preferred keyboard has a Chinese (Taiwan) keyboard layout, a US keyboard with Zhuyin, Cangjie and Dayi key labels (倉頡/注音鍵盤).
ccc

Re: SOLVED! install other keyboard layouts in LXDE

Post by ccc »

Which layout can I use for british keyboard in LXDE?

Code: Select all

cat /etc/default/keyboards:

XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT="nodeadkeys"
XKBOPTIONS=""

BACKSPACE="guess"
If I use Keyboard Layout Switcher with gb then I don't get british image displayed.

In /usr/share/lxpanel/images/xkb-flags gb.png doesn't exist, I have only uk.png.
Locked

Return to “Software & Applications”