|
Home > Archive > Debian Developers > October 2005 > applet showing the current XkbLayout
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
applet showing the current XkbLayout
|
|
| gustavo halperin 2005-10-06, 6:04 pm |
| 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 and X showing an ensign of the current
country Layout.
Thank you in advance
Gustavo Halperin
| |
| Philipp Matthias Hahn 2005-10-24, 4:22 pm |
| 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/te...ams/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 <pmhahn@debian.org>
GPG/PGP: 9A540E39 @ keyrings.debian.org
--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
|
|
|
|
|