Hello! On Thu, Oct 06, 2005 at 04:00:41PM +0300, gustavo halperin wrote: > I'm using enlightenment without KDE and without Gnome. My XFree86 is > configured with three keyboard layout: > Option "XkbLayout" "es,il,us" > Option "XkbOptions" "grp:shift_toggle" > My question is how I can cache when ever the keyboard Layout change and > which one is the current, this in order > to write an applet for enlightenment and X showing an ensign of the current > country Layout.
Take a look at "xkbwatch", available for example from http://www.x.org/pub/unsupported/test/Xkb/programs/xkbwatch.c: $ gcc -L /usr/X11R6/lib -lX11 xkbwatch.c $ ./a.out Watching the keyboard state... ------- group -------- ------- modifiers ------------- id key event eff base latch lock eff base latch lock compat 1 50 down 0 0 0 0 0x01* 0x01* 0x00 0x00 0x01* 1 62 down 1* 0 0 1* 0x01 0x01 0x00 0x00 0x81* 1 50 up 1 0 0 1 0x00* 0x00* 0x00 0x00 0x80* 1 50 down 1 0 0 1 0x01* 0x01* 0x00 0x00 0x81* 1 62 down 2* 0 0 2* 0x01 0x01 0x00 0x00 0x81 1 50 up 2 0 0 2 0x00* 0x00* 0x00 0x00 0x80* 1 50 down 2 0 0 2 0x01* 0x01* 0x00 0x00 0x81* 1 62 down 0* 0 0 0* 0x01 0x01 0x00 0x00 0x01* 1 50 up 0 0 0 0 0x00* 0x00* 0x00 0x00 0x00* BYtE Philipp -- Philipp Matthias Hahn <[EMAIL PROTECTED]> GPG/PGP: 9A540E39 @ keyrings.debian.org -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

