You are not logged in.
Pages: 1
Every time I reboot my system my keyboard layout changes back to US, even though I have "setxkbmap fi &" in .xinitrc.
Is there a way to change the keyboard layout without having to manually do it every time I restart my computer.
Last edited by fredu (2013-10-31 19:00:08)
Offline
~/.xinitrc is only for X. Your keyboard setup may be different in the tty.
Do you boot straight to X?
What's the output of 'localectl' after you boot, but before manual adjustments?
Last edited by karol (2013-10-31 17:27:08)
Offline
Have you tried:
# nano /etc/vconsole.conf
KEYMAP=de-latin1
FONT=Lat2-Terminus16From the Beginner's Guide?
EDIT: My bad, that's just for TTY's, it appears.
Last edited by frogcrush (2013-10-31 17:49:05)
Offline
What's the output of 'setxkbmap -query'?
Offline
@karol: the output for 'localectl' after I boot is:
"System Locale: LANG=en_US.UTF-8
VC Keymap: fi
X11 Layout: n/a"
and for 'setxkbmap -query' it is:
"rules: evdev
model: pc104
layout: us"
@frogcrush that doesn't work for X
Offline
I set X keymap in .xinitrc without the '&' at the end of the command:
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
setxkbmap carpalx
xset -dpms
xset s off
exec startxfce4But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I set X keymap in .xinitrc without the '&' at the end of the command
Me too.
fredu, do you boot straight to X or did you run 'localectl' from the tty?
Offline
@karol straight to X
Offline
I get
$ localectl
System Locale: LANG=en_US.UTF-8
LC_COLLATE=C
LC_MESSAGES=C
VC Keymap: pl2
X11 Layout: pleven in the tty, before booting X.
You can set the layouts like this:
# localectl set-x11-keymap plRead 'man localectl' for details.
Offline
@karol thanks, that worked.
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline
Pages: 1