SliTaz SliTaz Forum

You are not logged in.

#1 2012-01-11 08:07:06

black dog
Member
Registered: 2011-04-09
Posts: 331

How to switch a keyboard layout in SliTaz?

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

#2 2012-01-11 09:27:48

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: How to switch a keyboard layout in SliTaz?

Попробуй через setxkbmap

Offline

#3 2012-01-11 09:46:23

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: How to switch a keyboard layout in SliTaz?

I want to know why not work to switch layouts in xorg.

Why is it necessary to remake?

Offline

#4 2012-01-11 10:58:42

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: How to switch a keyboard layout in SliTaz?

На самом деле хороший вопрос. Вечерком накачу систему в виртуалку и поэкспериментирую.

У самого на рабочем компе все через setkbmap делается, но это уже привычка.

Offline

#5 2012-01-11 13:23:33

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: How to switch a keyboard layout in SliTaz?

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

#6 2012-01-11 13:34:44

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: How to switch a keyboard layout in SliTaz?

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

#7 2012-01-11 17:16:06

devl547
Administrator
Registered: 2011-06-01
Posts: 285

Re: How to switch a keyboard layout in SliTaz?

devl547@ideapad ~ $ cat .xinitrc |grep setxkbmap

exec setxkbmap -layout us,ru -option "grp:ctrl_shift_toggle" &

Угу, оно самое.

Offline

#8 2012-01-12 01:49:34

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: How to switch a keyboard layout in SliTaz?

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

#9 2012-01-12 13:06:47

black dog
Member
Registered: 2011-04-09
Posts: 331

Re: How to switch a keyboard layout in SliTaz?

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

#10 2012-04-13 12:44:36

tu334
Member
Registered: 2011-06-28
Posts: 19

Re: How to switch a keyboard layout in SliTaz?

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]