Page 1 of 2

TrayManager For JWM Desktop

Posted: Fri 20 Aug 2010, 08:05
by jpeps
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).

Re: TrayManager

Posted: Fri 20 Aug 2010, 08:16
by sc0ttman
jpeps wrote:Adds, Removes apps to/from .jwmrc-tray; displays TrayButton items.
Awesome.. Testing now.. EDIT.. It works :) 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!

Re: TrayManager

Posted: Fri 20 Aug 2010, 10:00
by jpeps
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.

Posted: Sun 22 Aug 2010, 05:39
by jpeps
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

Posted: Tue 24 Aug 2010, 19:06
by jpeps
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).

Posted: Thu 26 Aug 2010, 08:34
by esmourguit
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 ;)

Posted: Fri 27 Aug 2010, 08:57
by jpeps
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 ;)
Good idea. I'll add it is an option.

Posted: Mon 30 Aug 2010, 17:57
by esmourguit
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 ;)

Posted: Mon 30 Aug 2010, 20:40
by jpeps
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 ;)
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.

Posted: Mon 30 Aug 2010, 21:47
by technosaurus
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

Posted: Tue 31 Aug 2010, 00:35
by jpeps
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!

joe sure did give us a lot to work with
Amen!

Posted: Tue 31 Aug 2010, 06:41
by esmourguit
Bonjour à tous,
I made your fix,
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 ;)

Posted: Tue 31 Aug 2010, 07:46
by jpeps
esmourguit wrote:Bonjour à tous,
I made your fix,
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 ;)
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.

Posted: Wed 01 Sep 2010, 08:21
by jpeps
esmourguit wrote: (i had not noticed me until now) but also sed*** files in /root.
Cordialement ;)
Fixed. Thanks esmourguit

Posted: Tue 21 Sep 2010, 08:31
by esmourguit
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 ;)

Posted: Thu 23 Sep 2010, 21:57
by jpeps
esmourguit wrote: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 ;)
If it's in default location, no need to use search directory...just use checkbox and add name. Use search directory to find an icon somewhere else in the filesystem.

Posted: Sun 25 Sep 2011, 05:18
by jpeps
Version 4.0: Updated to include new gtkdialog file filters....no more entering names from a list file. Also, selects existing DOTjwmrc backup files or defaults to /mnt/home/DOTjwmrc for first use. Note that new files can be created by writing them in the entry window. Backed up files are remembered and will be the default for subsequent backups, so just pushing the backup button is sufficient.

Posted: Sun 13 Nov 2011, 00:49
by xia1498
What is typed in each line of attachment, please?

Posted: Sun 13 Nov 2011, 05:16
by jpeps
xia1498 wrote:What is typed in each line of attachment, please?
Popup: text you see when you place cursor over a tray icon
exec: the name of the program app
Select Icon: the name of the icon that shows up in the tray

select: View/Backup Tray to see examples of current listings

Task bar icon

Posted: Sun 13 Nov 2011, 19:04
by xia1498
My backup tray is empty and there are no icons on the taskbar. I have tried many times to load an icon. The icon will appear on the taskbar, for example-- mini-icons/mini-desktop.xpm, but does nothing when clicked on.