Page 1 of 1

keyboard layout in LXDE changes only after LXTerminal start

Posted: Mon May 15, 2017 7:22 pm
by meep-meep
Hi - Debian Jessie 8.8 with LXDE works fine for me. 'setxkbmap -layout "de" -variant "nodeadkeys"' in .bashrc gievs me a German keyboard in LXTerminal. I thought the following settings in "/etc/default/keyboard" should give the desired keyboard map in application windows:
XKBMODEL=pc105
XKBLAYOUT=de
XKBOPTIONS=terminate:ctrl_alt_bksp
BACKSPACE=guess
Alas, applications still start up with "us" key map active. Only after opening a LXTerminal, applications start with "de" key map. Further more, key maps of applications, opened prior to that LXTerminal, switch miraculously from "us" to "de" key map.

What am I missing?

Juergen

Re: keyboard layout in LXDE changes only after LXTerminal start

Posted: Thu May 18, 2017 6:13 am
by drooly
~/.bashrc is not parsed by your login manager.
put the setxkbmap line in ~/.config/lxde/autostart instead.

Re: keyboard layout in LXDE changes only after LXTerminal start  Topic is solved

Posted: Thu May 18, 2017 4:42 pm
by meep-meep
thank you very much, drooly. You solved my problem.
For my Debian the path to "autostart" turned out to be:
~/.config/lxsession/LXDE/autostart

Re: keyboard layout in LXDE changes only after LXTerminal start

Posted: Fri May 19, 2017 6:56 am
by drooly
thanks for clarifying that.
i think you can mark your thread Solved now.
i think it's in "Topic tools" at the top.