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

Please post all general support questions for LXDE here.
Locked
meep-meep
Posts: 2
Joined: Sun May 14, 2017 8:21 pm

keyboard layout in LXDE changes only after LXTerminal start

Post 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
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: keyboard layout in LXDE changes only after LXTerminal start

Post by drooly »

~/.bashrc is not parsed by your login manager.
put the setxkbmap line in ~/.config/lxde/autostart instead.
meep-meep
Posts: 2
Joined: Sun May 14, 2017 8:21 pm

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

Post 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
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: keyboard layout in LXDE changes only after LXTerminal start

Post 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.
Locked