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 Sat 29 Nov 2014, 03:28
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
TrayManager For JWM Desktop
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Fri 20 Aug 2010, 04:05    Post subject:  TrayManager For JWM Desktop
Subject description: Adds, Removes apps; displays TrayButton items.
 

Adds, Removes apps to/from .jwmrc-tray; displays TrayButton items.

Version 5.2 Allows for on-the-fly tray switching, from top hidden to bottom visible icon tray
Version 5.0 Allows selection of icon placement on tray
Version 4.5 Added an edit button; made it better able to handle multiple operations without reloading (Got rid of "DONE" window); smaller/faster. Uninstalls with the PM (thanks DaveS)
Version 4.1 Uses gtkdialog4
Version 4.0 Uses gtkdialog =>0.7.21 fileselect filters; Saves backup path, opens to alternative file, or creates new file; Add closewindow buttons.


Version 2.4 Add tooltips
notes: for removing/popup: enter single searchword
Version 2.3 Fix write to /root with "remove" and empty Popup box
Version 2.2.1 Remove comment to delete /tmp/add in cleanup
Version 2.2 Bug Fixes
Version 2.1 Notes:
Added jwm -restart option
Version 2.1.1 Removed bug that prevented loading icons with same name as directory.

Version 2.0 Notes:
For Icons:
1 .Add name without path for typical mini or pixmap location (see viewer)
OR
2. Use file directory (or enter manually with path) for atypical location.

Version 1.0 Notes:
1. Enter only names; paths are automatically inserted to standard locations for mini-icons and pixmaps (none are needed for exec file, as long as it is in PATH).
2. "popup" refers to the NAME that shows up when you place the cursor over the icon on the tray. For removing, all that is needed is the popup name.
3. Restart JWM to see changes (menu/leave/restart JWM).
TrayManager.png
 Description   
 Filesize   108.26 KB
 Viewed   1374 Time(s)

TrayManager.png

TrayManager-5.2.pet
Description  Version 5.2
pet

 Download 
Filename  TrayManager-5.2.pet 
Filesize  4.74 KB 
Downloaded  866 Time(s) 

Last edited by jpeps on Mon 19 Mar 2012, 00:08; edited 30 times in total
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Fri 20 Aug 2010, 04:16    Post subject: Re: TrayManager
Subject description: For JWM Desktop
 

jpeps wrote:
Adds, Removes apps to/from .jwmrc-tray; displays TrayButton items.

Awesome.. Testing now.. EDIT.. It works Smile After I realised you only need to enter the filename of the icon, not the whole path!

Good stuff. Thanks.

EDIT: I remade an alternative GUI, which was less confusing for me.

A suggestion: Could it be possible to move the delete tray stuff to the GTK TREE that pops up? Maybe a delete button next to each listed TrayButton would be lovely!
traymanager.gz
Description  slighlty alternative gui, hope you dont mind!
gz

 Download 
Filename  traymanager.gz 
Filesize  10 KB 
Downloaded  529 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Fri 20 Aug 2010, 06:00    Post subject: Re: TrayManager
Subject description: For JWM Desktop
 

sc0ttman wrote:

A suggestion: Could it be possible to move the delete tray stuff to the GTK TREE that pops up? Maybe a delete button next to each listed TrayButton would be lovely!


You just enter the popup name and push Remove. The popup names show up when you place the mouse over the icon on the tray.

The paths are entered by the radiobuttons. (I posted another picture to make it clearer). Thanks for testing.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sun 22 Aug 2010, 01:39    Post subject:  

Version 2.0

Added:

1. File Directory for choosing icons in atypical location.
2. Ability to manually enter paths to any location, although simply entering
name of icon works with typical mini or pixmap location.
3.Viewer for mini-icons and pixmaps directories
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 24 Aug 2010, 15:06    Post subject:  

While initially a curiosity, this app has actually changed the way I use the desktop, by quickly adding/removing projects I'm working on to the tray, where they are out of the way of the often cluttered desktop...a real timesaver. (generally I add a wrapper to /bin (ex. rxvt -e myscript).
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Thu 26 Aug 2010, 04:34    Post subject:  

Bonjour,
Very nice tool.
I translated in french and i made a slight modification to launch JWM when it is done.
Here is the mod script.
Cordialement Wink
traymanager_MOD.tar.gz
Description 
gz

 Download 
Filename  traymanager_MOD.tar.gz 
Filesize  1.84 KB 
Downloaded  497 Time(s) 

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Fri 27 Aug 2010, 04:57    Post subject:  

esmourguit wrote:
Bonjour,
Very nice tool.
I translated in french and i made a slight modification to launch JWM when it is done.
Here is the mod script.
Cordialement Wink


Good idea. I'll add it is an option.
jwm_restart.png
Description 
png

 Download 
Filename  jwm_restart.png 
Filesize  445.59 KB 
Downloaded  692 Time(s) 
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Mon 30 Aug 2010, 13:57    Post subject:  

Bonjour à tous,
To remove a popup, traymanager creates a sed* file in the /root directory. Is it possible to delete this file, or does this file matter?
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 30 Aug 2010, 16:40    Post subject:  

esmourguit wrote:
Bonjour à tous,
To remove a popup, traymanager creates a sed* file in the /root directory. Is it possible to delete this file, or does this file matter?
Cordialement Wink


remove the "#" from line 66: "rm /tmp/add" under "cleanup." I neglected to un-comment after testing. Thanks for catching this. I'll upload the fix.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4380

PostPosted: Mon 30 Aug 2010, 17:47    Post subject:  

Excellent coding again:

If you are looking for some code to reuse or just some ideas:

zigbert's ptrays has a lot of similar, good features that you could borrow
The autohiding, swallowed apps like xkeyboard & notes features are cool.

pup'ngo's drive trays (I don't know if there is a pet for it but the whole distro is only about 8mb anyways)

there are a couple of other scripts on the pupn'go thread - one parses
/usr/share/applications/*.desktop and builds jwm stuff

I like the ability to have a floating tray similar to wbar by using halign="center" y="+/-integer"

for light weight systems I dump Rox and use jwm to set the background and fake the "icons" using trays:
use x="+/-int" y="+/-int" layout="vertical" and use 2 traybuttons to make an opaque icon button (one for the icon and the other for text)
(unfortunately the opacity setting also makes the icon and text translucent,... too early kde4-ish for me)
(Note: if you dump Rox - you will probably want to update the defaulthandler script)

joe sure did give us a lot to work with

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Mon 30 Aug 2010, 20:35    Post subject:  

technosaurus wrote:
Excellent coding again:

If you are looking for some code to reuse or just some ideas:

zigbert's ptrays has a lot of similar, good features that you could borrow
The autohiding, swallowed apps like xkeyboard & notes features are cool.

I am using DUDE on several computers. Ptray is great, but had set programs for adding to tray. I wanted a bit more flexibility to add my own projects, icons, etc. Zigbert's work is brilliant (I have a folder of his projects to study).

I'll keep exploring other ideas. Puppy is full of talent to learn from. I'll look into some of the ideas you presented. Thanks!


Quote:
joe sure did give us a lot to work with

Amen!
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 31 Aug 2010, 02:41    Post subject:  

Bonjour à tous,
I made your fix,
Quote:
remove the "#" from line 66: "rm /tmp/add" under "cleanup." I neglected to un-comment after testing.

unfortunately, this is not enough. Not only the file /tmp/add is not removed (i had not noticed me until now) but also sed*** files in /root.
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 31 Aug 2010, 03:46    Post subject:  

esmourguit wrote:
Bonjour à tous,
I made your fix,
Quote:
remove the "#" from line 66: "rm /tmp/add" under "cleanup." I neglected to un-comment after testing.

unfortunately, this is not enough. Not only the file /tmp/add is not removed (i had not noticed me until now) but also sed*** files in /root.
Cordialement Wink


sed should be working with .jwmrc-tray and /tmp/add. What other files are showing up in root?

edit: you can PM me your adapted script.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 01 Sep 2010, 04:21    Post subject:  

esmourguit wrote:
(i had not noticed me until now) but also sed*** files in /root.
Cordialement Wink


Fixed. Thanks esmourguit
Back to top
View user's profile Send private message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Tue 21 Sep 2010, 04:31    Post subject:  

Bonjour à tous,
Is it possible that the search directory is / usr/local/lib/X11 when searching for icons: "Select Icon from Directory"?
Or maybe i am wrong, because i use traymanager in 4.3.1.
Cordialement Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0888s ][ Queries: 13 (0.0073s) ][ GZIP on ]