Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 04:52
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Keyboardstate - A keyboard country flag tray icon
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: 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
keyboardstate-1.0.pet
Description 
pet

 Download 
Filename  keyboardstate-1.0.pet 
Filesize  31.53 KB 
Downloaded  248 Time(s) 
trayflagicon.jpg
 Description   
 Filesize   4.8 KB
 Viewed   680 Time(s)

trayflagicon.jpg


_________________
Rob
-
The moment after you press "Post" is the moment you actually see the typso Cool

Last edited by tasmod on Mon 26 Sep 2011, 05:30; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
DPUP5520

Joined: 16 Feb 2011
Posts: 801

PostPosted: Sun 18 Sep 2011, 22:03    Post subject:  

Works just fine, very nice.
_________________
PupRescue 2.5
Puppy Crypt 528
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: 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
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Mon 19 Sep 2011, 02:14    Post subject:  

Dear Rob,

I am using IceWM.Sad, 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
View user's profile Send private message 
tasmod


Joined: 04 Dec 2008
Posts: 1461
Location: North Lincolnshire. UK

PostPosted: 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 Cool
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0483s ][ Queries: 12 (0.0034s) ][ GZIP on ]