Xorg, lightdm, xfce & German Keyboard
Polytropon
freebsd at edvax.de
Sun Jun 21 12:44:51 UTC 2020
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, ...
More information about the freebsd-questions
mailing list