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 Thu 28 Aug 2014, 09:30
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 Posts_count  
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  244 Time(s) 
trayflagicon.jpg
 Description   
 Filesize   4.8 KB
 Viewed   675 Time(s)

trayflagicon.jpg


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

Edited_time_total
Back to top
View user's profile Send_private_message Visit_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_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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0554s ][ Queries: 13 (0.0096s) ][ GZIP on ]