Re: Switching directly through multiple keyboards

Danilo Segan <[email protected]>
Newsgroups gmane.comp.xfree86.internationalization
Message-ID <[email protected]>
Yesterday at 22:09, Vincent wrote:

> Hello !
>
> A friend of mine, quite involved in ancient greek, sanscrit and phonetic
> alphabet has defined multiple xkb keyboards file. He wanted to know if
> there is a way to shift directly to a particular definition, rather than
> cycling through 3 or 4 different ones. 
>
> To express it more "factually", is there a way to assign, let's say
> SHIFT+SHIFT to a greek polytonic kbd, SHIFT+ALT to sanscrit, SHIFT+META
> to phonetics, etc.

Look inside keysymdef.h for possible symbol names which might produce
desired behavior.  You can notice that it's possible to switch
directly to either first or last group, but not to a specific number.

#define XK_ISO_Group_Shift              0xFF7E  /* Alias for mode_switch */
#define XK_ISO_Group_Latch                              0xFE06
#define XK_ISO_Group_Lock                               0xFE07
#define XK_ISO_Next_Group                               0xFE08
#define XK_ISO_Next_Group_Lock                          0xFE09
#define XK_ISO_Prev_Group                               0xFE0A
#define XK_ISO_Prev_Group_Lock                          0xFE0B
#define XK_ISO_First_Group                              0xFE0C
#define XK_ISO_First_Group_Lock                         0xFE0D
#define XK_ISO_Last_Group                               0xFE0E
#define XK_ISO_Last_Group_Lock                          0xFE0F

The usual group switching symbol is ISO_Next_Group above, but you may
use any other as well (if you use shift_toggle from standard XKB
options, you get ISO_Prev_Group as well).


If this is not sufficient, other programs such as GSwitchIt
(later versions integrated into Gnome 2.6) provide more options, and
do exactly what you call for.

Cheers,
Danilo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.