| Author |
Message |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: Sun 18 Sep 2011, 19:23 Post subject:
Keyboardstate - A keyboard country flag tray icon |
|
I've noticed in other os's that there is often a mini flag in the system tray, or whatever, denoting the keyboard country flag.
So I decided to modify the firewallstate tray icon code to produce a flag icon in the tray just the same.
The right click brings up a much smaller menu with just the info as necessary.
Hover tooltip states the keyboard country.
Please test and report.
Thanks
| Description |
|

Download |
| Filename |
keyboardstate-1.0.pet |
| Filesize |
31.53 KB |
| Downloaded |
161 Time(s) |
| Description |
|
| Filesize |
4.8 KB |
| Viewed |
515 Time(s) |

|
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
Last edited by tasmod on Mon 26 Sep 2011, 05:30; edited 1 time in total
|
|
Back to top
|
|
 |
DPUP5520
Joined: 16 Feb 2011 Posts: 756
|
Posted: Sun 18 Sep 2011, 22:03 Post subject:
|
|
Works just fine, very nice.
_________________ PupRescue 2.5
Puppy Crypt 528
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1229 Location: Ukraine
|
Posted: Mon 19 Sep 2011, 01:53 Post subject:
|
|
Dear tasmod,
Thanks for the little utility. I am running 4 keyboard layouts (US, RU, DE and UA) and when I change by performing an alt-shift combination, the flag in keyboardstate does not change to indicate the current layout (unlike fbxkb). Is there any way you could add that feature? Also, clicking on the flag in fbxkb cycles through the layouts specified in xorg.conf, which is also convenient.
With kind regards,
vovchik
|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: Mon 19 Sep 2011, 02:02 Post subject:
|
|
Hmm, odd it should change state. Does it change if you restart JWM?
It may be I need to change the 'return' to not correct. That way it will re-look.
It works by checking 'keymap'
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1229 Location: Ukraine
|
Posted: Mon 19 Sep 2011, 02:14 Post subject:
|
|
Dear Rob,
I am using IceWM. , but that sould not really make a difference, I think. keyboardstate shows up in the system tray area just fine and the left-click menu works...
With kind regards,
vovchik
PS. These are the relevant lines from xorg.conf:
| Code: | Option "XkbLayout" "us,ua,ru,de"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll" |
|
|
Back to top
|
|
 |
tasmod

Joined: 04 Dec 2008 Posts: 1459 Location: North Lincolnshire. UK
|
Posted: Fri 30 Sep 2011, 17:28 Post subject:
|
|
Hmm, interesting stuff that fbxkb.
Vovchik,
I had in mind that this was a first run item when Puppy is first installed, to be removed once keyboard is set.
I considered that the First Run wizard would remove the file during keyboard setting etc.
However, I looked up X11/XKBlib.h used in fbxkb and believe that it is a way to get the device info returned for the X keyboard swap.
No promises but I'll experiment for a while.
_________________ Rob
-
The moment after you press "Post" is the moment you actually see the typso 
|
|
Back to top
|
|
 |
|