TrayManager For JWM Desktop

Window managers, icon programs, widgets, etc.
Message
Author
jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

TrayManager For JWM Desktop

#1 Post 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).
Attachments
TrayManager.png
(108.26 KiB) Downloaded 2040 times
TrayManager-5.2.pet
Version 5.2
(4.74 KiB) Downloaded 1641 times
Last edited by jpeps on Mon 19 Mar 2012, 04:08, edited 30 times in total.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

Re: TrayManager

#2 Post 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!
Attachments
traymanager.gz
slighlty alternative gui, hope you dont mind!
(10 KiB) Downloaded 905 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

Re: TrayManager

#3 Post 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.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#4 Post 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

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#5 Post 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).

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#6 Post 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 ;)
Attachments
traymanager_MOD.tar.gz
(1.84 KiB) Downloaded 1017 times
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#7 Post 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.

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#8 Post 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 ;)
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#9 Post 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.

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#10 Post 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
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#11 Post 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!

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#12 Post 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 ;)
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#13 Post 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.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#14 Post by jpeps »

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

User avatar
esmourguit
Posts: 1410
Joined: Fri 17 Nov 2006, 14:45
Location: Entre l'ile aux oiseaux.et l'ile de sainte Lucie

#15 Post 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 ;)
[url=http://moulinier.net/][color=blue][b]Toutou Linux[/b][/color][/url] - [url=http://toutoulinux.free.fr/pet.php][color=blue][b]Paquets français[/b][/color][/url]

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#16 Post 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.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#17 Post 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.

xia1498
Posts: 15
Joined: Sun 31 Oct 2010, 20:24

#18 Post by xia1498 »

What is typed in each line of attachment, please?
Attachments
tray manager.png
(69.87 KiB) Downloaded 449 times

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#19 Post 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

xia1498
Posts: 15
Joined: Sun 31 Oct 2010, 20:24

Task bar icon

#20 Post 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.

Post Reply