Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jun 2020 14:44:45 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Christian Schmidt <Christian.Schmidt@chemie.uni-hamburg.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xorg, lightdm, xfce & German Keyboard
Message-ID:  <20200621144445.9a792cbd.freebsd@edvax.de>
In-Reply-To: <21575aa4-6f41-906d-ee90-904e9f9e5e45@chemie.uni-hamburg.de>
References:  <636e8210-85df-6142-22c8-5393333494d3@chemie.uni-hamburg.de> <CAGBxaXnn0K8f9rB5pR+JnVccfTMmWMhx=+8pNsPy6N7voTsm2w@mail.gmail.com> <21575aa4-6f41-906d-ee90-904e9f9e5e45@chemie.uni-hamburg.de>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sun, 21 Jun 2020 11:04:42 +0200, Christian Schmidt wrote:
> Hi Aryeh,
> 
> On 2020-06-21 03:08, Aryeh Friedman wrote:
> > Unless lightdm works different then other display managers (I don't use it)
> > all you should have to do is copy/symlink .xinitrc to .xsession:
> > 
> > ln -s ~/.xinitrc ~/.xsession
> 
> Thank you.
> Unfortunately, lightdm seems to work a little bit different. This 
> doesn't change behaviour.

Verify that you have the correct invocation for setxkbmap:

	setxkbmap -rules evdev -layout de

I don't have any keybpard-related configuration file in
/usr/local/etc/X11/xorg.conf.d/, so the X server can no
longer set a keyboard layout - it's up to the user's session
initialization (~/.xinitrc for "startx", ~/.xsession for
display manager) to do this, which is very disappointing.

Sadly, this does not affect the display manager. :-(



NB:

I'm using the C shell as the default dialog shell, and
I have certain user-local environmental variables set
using "setenv" in ~/.cshrc, so I'm using this:

In ~/.xsession:

	#!/bin/csh
	source ~/.cshrc
	exec ~/.xinitrc

In ~/.xinitrc:

	#!/bin/sh
	setxkbmap -rules evdev -layout de
	xsetroot -cursor_name left_ptr
	xset r rate 250 30
	xset b 100 1000 15
	xset s off
	xset -dpms
	wbar &
	exec icewm

Note that this contains a certain amount of "cargo cult",
like the optional #! entries, but it still works. ;-)

For language support, I use the following approach:

In ~/.login_conf:

	me:\
		:charset=UTF-8:\
		:lang=de_DE.UTF-8:

In ~/.cshrc:

	setenv  G_FILENAME_ENCODING     @locale

Vairables like $LC_ALL or $LANG or $MM_CHARSET will be
set accordingly. By magic. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200621144445.9a792cbd.freebsd>