You are not logged in.
How to switch a keyboard layout in SliTaz?
Here, file contents /etc/X11/xorg.conf.d/40-Keyboard.conf:
[c]Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbVariant" "grp:alt_shift_toggle"
Endsection[/c]
But layout doesn't switch!
Offline
Попробуй через setxkbmap
Offline
I want to know why not work to switch layouts in xorg.
Why is it necessary to remake?
Offline
На самом деле хороший вопрос. Вечерком накачу систему в виртуалку и поэкспериментирую.
У самого на рабочем компе все через setkbmap делается, но это уже привычка.
Offline
A few more attempts to adjust the switching layouts.
I make /etc/xdg/autostart/setxkmap.desktop as following:
[c][Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Fix keyboard settings
Exec=setxkbmap -rules xorg -layout "us,ru" -variant ",winkeys" -option "grp:alt_shift_toggle"
Terminal=false
Type=Application[/c]
I reboot. I checked - does not work!
If you click on the icon setxkmap.desktop, then after a moment's reflection begins to switch layout. Autostart does not work.
Offline
Found a working version!
In /home/tux/.config/openbox/autostart.sh add:
[c]setxkbmap -option grp:alt_shift_toggle us,ru &[/c]
Restart X-server. Check - works!
Offline
devl547@ideapad ~ $ cat .xinitrc |grep setxkbmap
exec setxkbmap -layout us,ru -option "grp:ctrl_shift_toggle" &
Угу, оно самое.
Offline
Another attempt at getting xorg.
In /etc/X11/xorg.conf.d/10-ServerLayout.conf add:
[c]Option "AutoAddDevices" "False"[/c]
After rebooting, no keyboard or mouse does not work. I had to boot from the live-cd and return back.
Offline
I solved the problem!
The file 40-Keyboard.conf error. Rule change the layout of groups somehow written in the line:
[c]Option "XkbVariant" "grp:alt_shift_toggle"[/c]
Should be as follows:
[c]Option "XkbOptions" "grp:alt_shift_toggle"[/c]
Forwards, save, restart X-server. Does not work! Why?
It appears in the directory /etc/X11/xorg.conf.d/ there is another file with the description "XkbOptions". This file 40-evdev.conf with line:
[c]Option "XkbOptions" "terminate:ctrl_alt_bksp"[/c]
Since the file 40-evdev.conf read before the file 40-Keyboard.conf, then the values of "XkbOptions" from the second file will not be accepted!
Log out. Remove the line:
[c]Option "XkbOptions" "terminate:ctrl_alt_bksp"[/c]
from the file 40-evdev.conf, and a value of "terminate: ctrl_alt_bksp" moved to file 40-Keyboard.conf. Should be:
[c]Option "XkbOptions" "grp:alt_shift_toggle,terminate:ctrl_alt_bksp"[/c]
Developers! Please correct it!
Offline
I had the same problem and on the actual stable (4.0), which appeared in the meantime, it works exactly as discribed by black dog. Thx!
But unfortunatly for me its not enough. I dont use a russian keyboard where I switch between the "ru" and the "us" layout, but an ordinary german layout. So the keys are only labelled with the latin letters. So I need the phonetic layout. Does anybody know how to get this in Slitaz?
Offline
[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]