didier at ddubois.info
Thu Jan 22 21:58:15 CET 2004
I tried your sample on my box, but 1st, my version do not support the
-print argument, and on the other side, if I manually set the setxkbmap
ru I do not have any change and still hit the US characters...
It seems my debian box do not wants to write and display russian characters.
Thanks in advance.
PS: Yes my description is somewhat weak, but I don't have any ideas how
to trace what's happen.
Sergey Manucharyan wrote:
>>I'm using 2 state launcher for that, and here is the script I'm using
>Thanks! I've slightly modified this script for 3 layouts
>that I need (english, russian, armenian) - this is not a perfect solution,
>but it works:
>if [ "$1" = "1" ]; then
>setxkbmap us &> /dev/null
>elif [ "$1" = "0" ]; then
>setxkbmap "ru,am" "" "grp:alt_shift_toggle"
>if setxkbmap -print | grep us &> /dev/null; then
>The first state is for english (us), the second - for russian or armenian (ru, am),
>we can chose from ru & am with <Alt-Shift>. So, you can adjust the script for
>your needs. The grep's argument is us, if you like to have the fisrt layout
>toggling by <Alt-Shift>, you have to check real output of the "setxkbmap -print".
>The empty quotes are mandatory, you can add keyboard variant between them.
>Xfce mailing list
>Xfce at xfce.org
More information about the Xfce