applet showing the current XkbLayout - Debian

This is a discussion on applet showing the current XkbLayout - Debian ; Hello
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 ...

applet showing the current XkbLayout

Hello

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 showing an ensign of the current
country Layout.