You are not logged in.
Heyas
I'm having difficulties to get my keyboard layout properly to swiss-german. (both, console and X)
* https://wiki.archlinux.org/index.php/Be … and_keymap
* https://wiki.archlinux.org/index.php/Locale
* https://wiki.archlinux.org/index.php/Lo … ult_locale
* https://wiki.archlinux.org/index.php/Lo … g_language
However, its (the fonts) not been a -manual- installation as from a tarball, but using AUR (pacman).
Arch:
0 ~ $ localectl
System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: n/a
0 ~ $ grep -v '#' /etc/{locale,vconsole}.conf
/etc/locale.conf:LANG=de_CH.UTF-8
/etc/vconsole.conf:KEYMAP=ch
/etc/vconsole.conf:FONT=eurlatgr
grep -v '#' /etc/locale.gen
de_CH.UTF-8 UTF-8
en_US.UTF-8 UTF-8
Fedora: (this was just taken as reference to be sure i used the same settings, as they work there)
# localectl output was copypasted before rebooting
System Locale: LANG=de_CH.UTF-8
VC Keymap: ch
X11 Layout: ch
tmp/etc/locale.conf:LANG="de_CH.UTF-8"
tmp/etc/vconsole.conf:KEYMAP="ch"
tmp/etc/vconsole.conf:FONT="eurlatgr"
Dont tell me its the quotes, there are no quotes in the wiki.
Any ideas please? (aka; what did i miss?)
Thank you in advance.
NOTE:
I've been trying to install system-config-language, but there is no such package in AUR ( pacman -Q sys) (i used to use that tool on my fedora installation using awesome wm)
EDIT>
Even having
LANG=de_CH.UTF-8 awesome &
in xinitrc doesnt help to get my keymap loaded
Last edited by esa (2015-06-08 14:03:14)
Offline
Post the commands you used to setup the locale and their output and the output of 'locale -a'.
Is 'eurlatgr' a proper FONT?
$ cat /etc/vconsole.conf
FONT=ter-v16n
FONT_MAP=8859-2
KEYMAP=pl2
Offline
Yes it is: /usr/share/kbd/consolefonts/eurlatgr.psfu.gz7
European Latin Greek, at least thats how i recall it
locale -a
C
de_CH.utf8
POSIX
Sorry, cant post the 100% for sure commands i used, history is not long enough.
But just as the wiki said, i did edit the /etc/locale.gen, and then ran locale-gen, but onlz after manually setting vconsole.conf by searching through the above mentioned path.
Just figured, i-ve had -sg-, as was found in: /usr/share/kbd/keymaps/i386/qwertz/
But since it didnt applied to X, i started to tinker and changed that value along.
Thank you
EDIT> This said, currently changing back to sg.
EDIT2> As expected, i have again the swiss german on console, but still not in X, which was and is the main cause for this thread.
$ localectl
System Locale: LANG=de_CH.UTF-8
VC Keymap: sg
X11 Layout: n/a
Last edited by esa (2015-06-08 10:59:35)
Offline
Sorry esa, but It seems to me that you have two distinct problems here: one regarding the console font and one with the keyboard layout in X.
Since in your last post you say that you were able to get german in the console I assume that the font problem is solved, right? About the keyboard layout in X, have you tried to use setxkbmap? You can add something like the following to your .xinitrc
/usr/bin/setxbmap ch
You can also configure the keyboard layout globally editing the X configuration files, read this section of the wiki for more information: https://wiki.archlinux.org/index.php/Ke … ard_layout
Last edited by mauritiusdadd (2015-06-08 12:20:54)
Offline
I must be doing something wrong.
When i type this in a terminal window:
setxkbmap ch
It works just fine, as the change takes in effect immediatly - terminal window and other X-applications.
However, when i apply it to the xinitrc's, it wont apply the changes when restarting X.
0 ~ $ tail -n1 /etc/X11/xinit/xinitrc
/usr/bin/setxkbmap ch
0 ~ $ tail -n1 .xinitrc
/usr/bin/setxkbmap ch
Not supposed for that, but placing it in .bash_profile helps.... as much that the terminal windows has swiss-german layout,
but still... X (as in firefox) has not....
Confusing....
However, the /etc/xorg.conf.d/10-keyboard.conf method worked fine.
Have to get used to them, never required to create them on my own.
Thanks alot!
For some reason this was more challenging than the ugly fonts...
Last edited by esa (2015-06-08 14:08:42)
Offline
Glad to hear that you solved your problem!
However, when i apply it to the xinitrc's, it wont apply the changes when restarting X.
I should have been more specific, that was an example that works only if you are starting X using startx/xinit but it will not work If you use a display manager.
PS: just a little advice, never edit the system wide configuration file /etc/X11/xinit/xinitrc unless you know what you are doing
Last edited by mauritiusdadd (2015-06-08 14:55:51)
Offline
Oh lol, i removed the note that i was removing those lines.
Just appened the line there, since it wasnt working in ~/.xinitrc.
ty
Offline