|
Bugzilla – Full Text Bug Listing |
| Summary: | no kbd shortcut for changing keybord layout in xorg.conf | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Ladislav Michnovic <lmichnovic> |
| Component: | SaX2 | Assignee: | Marcus Schaefer <ms> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | sndirsch |
| Version: | Beta 2 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Ladislav Michnovic
2005-08-18 08:26:29 UTC
This sounds more like a SaX2 issue. default is
shift+shift
to switch group
(In reply to comment #2) > default is > > shift+shift > > to switch group Shift-shift is not working. IMHO without any Option in xorg.conf there's no way to change it. Shift+shift is not the solution. *** Bug 105430 has been marked as a duplicate of this bug. *** there was a default to shift+shift if this has changed in xkb we should fix it. Assigned to Stefan sorry I missed the :-) Stefan there was a default toggle switch please activate it again. Thanks I've added a line in my xorg.conf Option "grp:alt_shift_toggle" but it's useles. How to switch between layouts in SL 10 Beta 2 ? I have a suggestion for Sax2 usability. When choosing a kbd layouts and variant, there should be also possibility to choose a shortcut, that will change the kbd layout when X is started. (Not everyone is using KDE.) For a shortcut I propose whithin double Shift also leftAlt+leftShift (MS Windowslike). Hmm, but Alt-Shift seems to be the default toggle now.
setxkbmap -layout cz,us -v
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols:
pc(pc105)+cz+us:2+group(shifts_toggle)+group(toggle)+group(shifts_toggle)+group(alt_shift_toggle)
geometry: pc(pc105)
I should have read the manpage of setxkbmap more carefully. Please try this: setxkbmap -layout cz,us -option "" -v setxkbmap -layout cz,us -option "" -option "shift_toggle" (for Shift-Shift toggle) setxkbmap -layout cz,us -option "" -v setxkbmap -layout cz,us -option "" -option "alt_shift_toggle" (for Alt-Shift toggle) I have tried this:
> setxkbmap -layout cz,us -option "" -v
> setxkbmap -layout cz,us -option "" -option "shift_toggle"
But something is wrong.
If I'm pressing both shifts or anything, I always have cz layout.
My windowmanager is Windowmaker.
setxkbmap -layout cz,us -v
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc104)+cz+us:2
geometry: pc(pc104)
Please add the output of setxkbmap -layout cz,us -option "" -v setxkbmap -layout cz,us -option "" -option "shift_toggle" -v Sorry for mystifying, I corrected the bad line
BAD Option "grp:alt_shift_toggle"
CORRECT Option "XkbOptions" "grp:shift_toggle"
^^^^^^^^^^
and it's functioning now.
But the whole problem is, that after setting keyboard layout in SAX2, generated
file /etc/X11/xorg.conf doesn't contain line:
Option "XkbOptions" "grp:shift_toggle"
in Section "InputDevice".
The output, You asked for, is here, but see more below for solution:
lmichnovic@zuzka:~> setxkbmap -layout cz,us -option "" -v
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc104)+cz+us:2
geometry: pc(pc104)
lmichnovic@zuzka:~> setxkbmap -layout cz,us -option "" -option "shift_toggle" -v
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc104)+cz+us:2
geometry: pc(pc104)
HERE IS THE USE THAT WORKS:
setxkbmap -layout cz,us -option "grp:shift_toggle" -v
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwertz)
types: complete
compat: complete
symbols: pc(pc104)+cz+us:2+group(shifts_toggle)
geometry: pc(pc104)
The "grp:" was missing in option.
Sorry, my fault. You need "grp:shift_toggle". Anyway, there's still the problem, that there is no toggle by default. Marcus told me that there is (shift_toggle) on 9.3. I'm still investigating. Looks like it was a misinformation that there is a default toggle. Actually there isn't. Marcus, please set a default toggle for all language with mulitpile keyboard layouts. We can try to discuss which toggle for which language. On Thu, Aug 18, 2005 at 06:30:02PM +0100, Sergey V. Udaltsov wrote:
> > I've been told that with XFree86/X.Org a default toggle "Shift+Shift"
> > (shift_toggle) is set to change multiple keyboard layouts. Looks like
> You were misinformed. It was never a case. At least, I never heard of
> it. GNOME uses default 'alt-alt' - but it explicitly set as an option.
Maybe we should use also "alt-alt" for languages we don't know which toggle to
set as default?
(In reply to comment #16) > We can try to discuss which toggle for which language. My oppinion is, that the ultimate solution is create in SAX2 keybord settings new option for choosing shortcut, to let user set this. As default I prefer as windows has leftAlt+leftShift. fixed, default XKB option will be included: Keyboard0 => XkbOptions : grp:alt_shift_toggle The fix for this bug was invalid, if this option is set and only one keyboard layout is used the behavior is weird which is in my opinion a bug in XKB. nevertheless I changed the fix to include the toggle option only if layout > 1 Thanks! |