You are not logged in.
Pages: 1
So I was having a problem with the keyboard layout in XFCE being wrong and found that the correct command to use was:
setxkbmap gb
and that worked well. It is just that when I reboot the machine the setting is lost. In the keyboard Arch wiki article it says to add setxkbmap gb to .xinitrc in order to make sure it persists across reboots but that doesn't seem to be doing the trick. Any hints on where I should put that line so it stays set?
The article in question is this one:
https://wiki.archlinux.org/index.php/Ke … _setxkbmap
Last edited by Cromulent (2014-11-16 13:15:51)
Offline
You could use xinit
EDIT: Whoops, didn't read your post carefully...
Could you post your xinitrc?
Last edited by MK13 (2014-11-16 13:45:31)
Offline
Sure.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
dropboxd
setxkbmap gb
Offline
You could make this setting persistent across reboots (therefore, not including it in your .xinitrc), by:
localectl set-x11-keymap gb
Localectl is part of systemd.
Offline
Try:
dropboxd
setxkbmap gb
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
In short,
exec startxfce4
should be the last line, not the first.
Offline
Ah, thank you both.
You could make this setting persistent across reboots (therefore, not including it in your .xinitrc), by:
localectl set-x11-keymap gb
Localectl is part of systemd.
I assume that means localectl is system wide then? The man page seems to say so. In that case that sounds like the best option. Not having to faff around with the .xinitrc file for new users is a big plus.
Offline
I assume that means localectl is system wide then?
Offline
exec startxfce4
should be the last line, not the first.
This: https://wiki.archlinux.org/index.php/Xinit (read the first note).
Offline
Pages: 1