OldRolly
Posts: 3
Joined: Thu Dec 24, 2015 12:04 pm

Wrong keyboard layout after startx

Sat Jun 11, 2016 11:05 am

Hi to everyone:
I entered "startx" as a root in the past which caused a new (X Windows?) desktop to start. In this new desktop the keyboard layout corresponds to a US keyboard and not to my preferrred german keyboard. How can I change the settings in such a way that a german keyboard is implemented?

Furthermore: is there anybody who can explain me (as a Raspian beginner) the different desktops and how to switch between these desktops?

Thanks a lot for any help.

User avatar
flatmax
Posts: 343
Joined: Thu May 26, 2016 10:36 pm

Re: Wrong keyboard layout after startx

Sat Jun 11, 2016 11:55 am

Check "XKBLAYOUT" in /etc/default/keyboard

You should be able to run dpkg-reconfigure keyboard-configuration if you need to.

Hope that helps !

Matt
Discuss hearing, acoustics, audio injector products, - https://lists.audioinjector.net/mailman/listinfo/people
Sound card for the Raspberry Pi with inbuilt microphone : www.audioinjector.net
Audio Inector Octo multitrack GPIO sound card

emceeMC
Posts: 6
Joined: Mon Sep 23, 2019 7:53 pm

Re: Wrong keyboard layout after startx

Fri Sep 27, 2019 7:29 pm

Bump

For anybody as dumb as me, I found out what was wrong. I downloaded a custom .xinitrc to modify my dwm status bar. However there was a line in there

Code: Select all

setxkbmap -layout gb -option ctrl:nocaps
lol! It specified -layout gb in there, which is why startx changed the keyboard layout

Return to “Beginners”