[opensuse] Switching keyboard layouts
Hi List, What I want is to be able to switch different keyboard layouts by shortcut keys. Currently I have three layouts(english, russian and armenian). The default, which I can see in Keyboard Shortcuts section in Control Center is Alt+Ctrl+k, but when I use it and it successfully switches to russian layout, then it doesn't work for russian-armenian switching. I guess that being russian it's not Alt+Ctrl+k anymore. So, I've added alternate shortcut, for russian Alt+Ctrl+k key sequence, but it doesn't seem to be a solution, because then how do I switch from armenian back to english. I've also played with the xkb Options(though not knowing what it is, but it doesn't seem to be what I'm looking for). Am I missing something? Running SuSE 10.0 yet. Sergey -- Sergey Mkrtchyan, Master Student @ Department Of Molecular Physics, Faculty Of Physics, Yerevan State University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2/3/07, Sergey Mkrtchyan <crusoe@freenet.am> wrote:
Hi List,
What I want is to be able to switch different keyboard layouts by shortcut keys. Currently I have three layouts(english, russian and armenian). The default, which I can see in Keyboard Shortcuts section in Control Center is Alt+Ctrl+k, but when I use it and it successfully switches to russian layout, then it doesn't work for russian-armenian switching. I guess that being russian it's not Alt+Ctrl+k anymore.
So, I've added alternate shortcut, for russian Alt+Ctrl+k key sequence, but it doesn't seem to be a solution, because then how do I switch from armenian back to english.
I've also played with the xkb Options(though not knowing what it is, but it doesn't seem to be what I'm looking for).
Am I missing something?
Hi Sergey, I also have 3 different layouts, but I'm using "Window" key to switch them (it is independent from current layout). Some years back I used ALT-SHIFT to switch as well, but then decided that it could be nice to make Windows do at least something useful :-). My current version is 10.2 but it was the same in 10.0. This is a line from InputDevice section of xorg.conf: Option "XkbOptions" "grp:rwin_toggle,grp:lwin_toggle,grp_led:scroll" (that is I want that both left and right window key will switch layout and I want Scroll LED to indicate alternative layout" I made it from SOX2, but in 10.0 you can safely do it manually (in 10.2 you'll need to re-calculate md5 checksum for xorg.conf if you edit it manually). -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2/3/07, Mark Goldstein <goldstein.mark@gmail.com> wrote:
On 2/3/07, Sergey Mkrtchyan <crusoe@freenet.am> wrote:
Hi List,
What I want is to be able to switch different keyboard layouts by shortcut keys. Currently I have three layouts(english, russian and armenian). The default, which I can see in Keyboard Shortcuts section in Control Center is Alt+Ctrl+k, but when I use it and it successfully switches to russian layout, then it doesn't work for russian-armenian switching. I guess that being russian it's not Alt+Ctrl+k anymore.
So, I've added alternate shortcut, for russian Alt+Ctrl+k key sequence, but it doesn't seem to be a solution, because then how do I switch from armenian back to english.
I've also played with the xkb Options(though not knowing what it is, but it doesn't seem to be what I'm looking for).
Am I missing something?
Hi Sergey,
I also have 3 different layouts, but I'm using "Window" key to switch them (it is independent from current layout). Some years back I used ALT-SHIFT to switch as well, but then decided that it could be nice to make Windows do at least something useful :-). My current version is 10.2 but it was the same in 10.0. This is a line from InputDevice section of xorg.conf:
Option "XkbOptions" "grp:rwin_toggle,grp:lwin_toggle,grp_led:scroll"
(that is I want that both left and right window key will switch layout and I want Scroll LED to indicate alternative layout"
I made it from SOX2, but in 10.0 you can safely do it manually (in 10.2 you'll need to re-calculate md5 checksum for xorg.conf if you edit it manually).
Sorry, forgotten to mention that this is switching on X-level rather than KDE. I tried doing it in KDE (do not remember whether it was SuSE 10.0 or 9.something), but somehow the result was disappointing. One advantage of KDE mechanism is that it allows switching per application or per window, but since it did not work well for me, I reverted for X mechanism. Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Goldstein wrote:
My current version is 10.2 but it was the same in 10.0. This is a line from InputDevice section of xorg.conf:
Option "XkbOptions" "grp:rwin_toggle,grp:lwin_toggle,grp_led:scroll"
(that is I want that both left and right window key will switch layout and I want Scroll LED to indicate alternative layout"
I made it from SOX2, but in 10.0 you can safely do it manually (in 10.2 you'll need to re-calculate md5 checksum for xorg.conf if you edit it manually).
Hi Mark, Thanks for the reply, I've added the line in xorg.conf(/etc/X11, yes?), but it didn't help. I guess my windows keys are not recognized by the system, because when I tried manually to change Alt+Ctrl+K key sequence from Keyboard Shortcuts in Control Center to windows key, nothing happened when I hit it. From Sax2, I've seen that my keyboard's model is recognized as "Generic pc104", if I recall correctly the part with "Generic". But my keyboard is not that. Maybe the problem is in that? I liked the idea of Windows key, but since that doesn't work, what that line should be to use Alt+Shift? Thanks again for help. Sergey -- Sergey Mkrtchyan, Master Student @ Department Of Molecular Physics, Faculty Of Physics, Yerevan State University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2/3/07, Sergey Mkrtchyan <crusoe@freenet.am> wrote: ...
Thanks for the reply, I've added the line in xorg.conf(/etc/X11, yes?), but it didn't help. I guess my windows keys are not recognized by the system, because when I tried manually to change Alt+Ctrl+K key sequence from Keyboard Shortcuts in Control Center to windows key, nothing happened when I hit it.
From Sax2, I've seen that my keyboard's model is recognized as "Generic pc104", if I recall correctly the part with "Generic". But my keyboard is not that. Maybe the problem is in that?
I liked the idea of Windows key, but since that doesn't work, what that line should be to use Alt+Shift?
Sergey, Yes, it's in /etc/X11. If I remember correctly XkbVariant option "winkyes" enables Windows keys. So you can add the line: Option "XkbVariant" "winkeys" at the end of InputDevice section. In my current version I have Option "XkbRules" "xfree86" Option "XkbVariant" "xfree86" And it enables both Windows keys and some additional keys (like volume up/down, power off). As for Alt-Shift, the option would be: Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll" You can also specify whether you want only left or right ALT-SHIFT to switch layout. I never remember exact format. I usually do it from SaX2 and then edit it to get exactly what I want. Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On my system it didn't worked with 10.0, so an upgrade to 10.2 is required. Anyways: in the layout section in KDE Control, you must add: "use English layout" or "use Latin layout" or something like that.... simply enable a check-box and you're done. Your shortcuts will work. -Alexey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Alexey Eremenko wrote:
Anyways: in the layout section in KDE Control, you must add:
"use English layout" or "use Latin layout" or something like that.... simply enable a check-box and you're done. Your shortcuts will work.
Hi Alexey, I have a box "use latin layout" there, but it's greyed out(tried even under root). Sergey -- Sergey Mkrtchyan, Master Student @ Department Of Molecular Physics, Faculty Of Physics, Yerevan State University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Goldstein wrote:
So you can add the line: Option "XkbVariant" "winkeys"
Strange, but both "winkeys" and "xfree86" doesn't help.
As for Alt-Shift, the option would be:
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
That section looks like ________________________ Section "InputDevice" Driver "kbd" Identifier "Keyboard[0]" Option "Protocol" "Standard" Option "XkbLayout" "us" Option "XkbModel" "pc104" Option "XkbRules" "xfree86" Option "XkbVariant" "winkeys" Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll" EndSection ________________________ And I've noticed the following message while booting |Loading keymap qwerty/us.map.gz |doneLoading compose table winkeys shiftctrl latin1.adddone |Start Unicode mode
I never remember exact format. I usually do it from SaX2 and then edit it to get exactly what I want.
How do you do that from Sax? There I see only ticks before Russian and Armenian, and I've put them manually to phonetic. No shortcuts... Besides, changing in Shortcuts(in control center) to Alt+Shift, brings to Alt+ISO_Next_Group text on that place. And that doesn't work either. Sergey -- Sergey Mkrtchyan, Master Student @ Department Of Molecular Physics, Faculty Of Physics, Yerevan State University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2/3/07, Sergey Mkrtchyan <crusoe@freenet.am> wrote:
Mark Goldstein wrote:
So you can add the line: Option "XkbVariant" "winkeys"
Strange, but both "winkeys" and "xfree86" doesn't help.
As for Alt-Shift, the option would be:
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
That section looks like ________________________ Section "InputDevice" Driver "kbd" Identifier "Keyboard[0]" Option "Protocol" "Standard" Option "XkbLayout" "us" Option "XkbModel" "pc104" Option "XkbRules" "xfree86" Option "XkbVariant" "winkeys" Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll" EndSection ________________________
Sorry, I should have sent you full text. You have to specify all layouts here. I've found my old xorg.conf from 10.0 (do you want 9.1 by chance? I have found it too :-) ) Section "InputDevice" Driver "kbd" Identifier "Keyboard[0]" Option "Protocol" "Standard" Option "XkbLayout" "us,ru" Option "XkbModel" "pc104" Option "XkbOptions" "grp:lwin_toggle,grp_led:scroll" Option "XkbRules" "xfree86" Option "XkbVariant" "xfree86" EndSection Add Armenian after ru (like "us,ru,am") And in KDE I disabled keyboard layouts.
How do you do that from Sax? There I see only ticks before Russian and Armenian, and I've put them manually to phonetic. No shortcuts...
I do not remember how exactly it looked in 10.0. There is some tab (in 10.2 it is called "options") it which you can 'tick' the proper combination. I have one box with 10.0 in the office, I'll check it out after weekend (if we still fail to find out how to configure it :-( ). I also remember that on 10.0 it took me some time before it started working. I've chosen something like pc105-international model and nothing worked. Then I noticed in /var/log/Xorg.log message that this keyboard model is not compiled or something like that. I played with models and eventually found that pc104 worked. Fortunately, you have it already. Regards, -- Mark Goldstein -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Goldstein wrote:
Sorry, I should have sent you full text. You have to specify all layouts here. I've found my old xorg.conf from 10.0 (do you want 9.1 by chance? I have found it too :-) )
Section "InputDevice" Driver "kbd" Identifier "Keyboard[0]" Option "Protocol" "Standard" Option "XkbLayout" "us,ru" Option "XkbModel" "pc104" Option "XkbOptions" "grp:lwin_toggle,grp_led:scroll" Option "XkbRules" "xfree86" Option "XkbVariant" "xfree86" EndSection
Thanks Mark, that worked! All three languages are just fine, changing them with Windows keys, I only had to change my last line to Option "XkbVariant" ",phonetic,phonetic" ...to use two of them in phonetic mode. Thank you very much again. Regards, Sergey -- Sergey Mkrtchyan, Master Student @ Department Of Molecular Physics, Faculty Of Physics, Yerevan State University -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Alexey Eremenko
-
Mark Goldstein
-
Sergey Mkrtchyan