Guys, I'm sorry to say this thread led me nowhere.

I've been a Unix person for 26 years. This is a perfect example to why
the hated windows
is still better then Linux/unix as an office solution. As far as Linux
desktop is concerned, I am a USER and I don't want to deal with that
shit.

I wrote myself a simple script and attached it to F1. It toggles
hebrew/english but I still have no flags on the icon, and the icon
itself does not update when the language switches.

-------------------
#!/bin/bash
cur_l=$(setxkbmap -model pc104 -print | grep xkb_symbols)
cur_l=${cur_l#*+}
cur_l=${cur_l%%+*}

case ${cur_l} in
       us) setxkbmap -model pc104 -layout il
       ;;
       il) setxkbmap -model pc104 -layout us
       ;;
       *) setxkbmap -model pc104 -layout us
       ;;
esac
--------------------

Dan

On 3/5/07, Michael Vasiliev <[EMAIL PROTECTED]> wrote:
On Sunday March 4 2007, Vassilii Khachaturov wrote:
> > I've learned that the following commands do the switching:
> >      setxkbmap -model pc104 -layout us
> >      setxkbmap -model pc104 -layout il
> > so I can use them as input actions to select english/hebrew.
> >
> > However, turns out the commands do not update the icon.
> > Is there a better way to switching language on KDE 3.5.5/FC5 using the
> > keyboard?
>
> Please have a look at the following bug with a micro-HOWTO inside,
> on how to enable keyboard-based switching on the dead right-windows key:
>
> http://bugs.kde.org/show_bug.cgi?id=84606

Oh, but that's just evil, setting RWIN to be a third-level modifier just for
the fun of selecting it as a language switching key, because the binding
selection engine does not understand that it is a modifier. If you would bind
it as something else, that would be nice, but people use ISO_Level3_Shift to
temporarily switch keymaps, and your hack creates a collision.
It is interesting that ISO_Next_Group and ISO_Prev_Group can't be used as kde
modifier "keys", for some reason unknown to me. Perhaps, in a world where
modifier keys can be bound to actions, making it impossible to bind the right
key to this action makes sense. Moreover, it is only possible to switch
keymaps in one direction in KDE.

I still hang to my opinion that KDE keyboard switching is a mess between xkb
and modmap, thus, I use xkb and ignore KDE keymap switching altogether.

--
Sincerely Yours,
Michael Vasiliev

The following statement is not true.  The previous statement is true.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to