It is a handy utility to save lot of space and to hide some application window in the sysetem tray applet

To Dock An Application Run:
alltray
e.g.,
alltray kwrite
alltray gedit
alltray kdevelop
alltray ymessenger
Source (link to git-repo or to original if based on someone elses unmodified work):
Apr, 19, 2005: Jochen Baier
- bug fix release: do not show balloon message if mouse left icon (already)
- set version to 0.51
Apr, 18, 2005: Jochen Baier
- xmms support:
-no window decoration
-minimize to tray
-nice icon
-Play, Pause, Next menu
- add "--title " option. display title change (for example: next song)
- balloon shaped tooltips
- add manpage (written by Carlos C Soto )
- set version to 0.50
Apr, 4, 2005: Jochen Baier
- hide window before it is docked/reparent with use of XMap function preloading
(avoid ugly window appearing for half a second, do not work with all apps)
- removed "--hide_window" option
- aterm support (bug reported by Ciprian Popovici)
- broke xmms and ding support (temporary)
- split code to more files
- set version to 0.43 (dev snap)
Mar, 18, 2005: Jochen Baier
- fixed segfault. could arise if program to dock is not in standard path
(e.g. /usr/local/bin/thunderbird/thunderbird)
bug reported by Kristoffer Järleby
- set version to 0.42
Mar, 1, 2005: Jochen Baier
- added "--menu" option. add own menu entries to popdown menu to
execute commands. example: --menu "Sync:/bin/sync".
- set version to 0.41
Feb, 23, 2005: Jochen Baier
- alltray works now with Fluxbox and WindowMaker
(wmaker with "docker" dockapp)
- added "--borderless" option, requested by Jesus Garcia Crespo,
usefull for borderless Eterm, xmms...
- prevent child moving inside parent
- resize tray icon if system tray/panel change size
- added "--large_icons" option to allow icons greater than 24x24
- suppress "appicon" in WindowMaker
- set input hint on parent to False for correct focus handling
- identify/detect/filter windows like a window manager
- internal tray icon improvements
- detect workspace switch correct
- bug fixes
- set version to 0.40
Jan, 27, 2005: Jochen Baier
- use process group ID to identify windows (usefull for programs
with own child processes like thunderbird,
alltray /home/user/thunderbird/thunderbird works now)
thanks to Kai for the bug report
- remove path and arguments from command before compare with
wm_class
- check if the size of the child window have changed before docking
(usefull for "ding, Dictionary Lookup" program)
thanks to Poly for the bug report
- added "--debug" command line option
- check for unknown/wrong options
- set version to 0.35
Ratings & Comments
10 Comments
IMHO should be included in the standard distribution !!! looks like that the apps in the tray are "preloaded" and start up at now time :-) testet on SuSE 10.3 which has greatly reduced main memory requirements, so there is more "place" to play around with such things.
I get a sefault after the initial configuration. The preferences file constains only the 'left' word. This is when using Domino window decoration. Excerpt from debug output: valid num: 1 return num is: 1 user_dir: /home/cromo/.alltray filnename: /home/cromo/.alltray/prefs Segmentation fault
the main difference between alltray and kstart/ksystraycmd is: if you click on the "close-button" the window will be minimized back to tray. with kstart/ksys... the window will be really closed and the app quit.
You can use ksystraycmd --startonshow --keeprunning ... to make the Close button iconify the program. However, I have to specify the icon for the program, or ksystray will display an "empty sheet" icon in the tray when the window is not shown, e.g. ksystraycmd --icon /opt/kde/share/icons/hicolor/scalable/apps/kcalc.svgz --startonshow --keeprunning kcalc Also, with ksystraycmd, it takes very long for the program to reopen if I have it hidden for a while. That doesn't happen with KDE applications with native systray icons. I haven't been able to test whether alltray improves this, because it just crashes with Segmentation Fault...maybe I could try to troubleshoot it later. If alltray could merge the advantages of ksystraycmd and improve it, that would be great.
That ksystraycmd command doesn't seem to work if one puts it into the K menu. For example, I have sunbird in /home/n7dr/programs/sunbird, but if I put the command: "ksystraycmd --startonshow --keeprunning home/n7dr/programs/sunbird/sunbird" as a menu item on the K menu, the command doesn't run (although it does run if I type it from a console window). I've tried putting an explicit path in for the working directory, and also trying various combinations of the other checkboxes when creating the K menu item, but none of them seem to work with the ksystraycmd you describe. I don't know why. Really, KDE should have a "minimize to tray" option on all main application windows. It seems, according to some threads I've seen, that this is being considered for the future.
hmm, i think i've discover a bug. i want to use evolution with alltray but when i do so, the drag&drop function between the folders doesn't work!!! when i use ksystraycmd it works...
drag n drop work with the 0.60 version (Gnome and KDE)
Please support bmp as well. http://beepmp.sf.net/
You can also do that with kstart.
How so? I would like to get kate working in the same way that amaroK or Konversation works - always running, and viewable when I click on the system tray icon, and going away (gone from the Task Bar, but still running) when I click on the icon again. With this I can run: alltray kate ...and it works fine, with the proper icon and easy toggling of visibility. I played around with kstart quite a bit and could not get it to work. The following: kstart --tosystray kate Causes a huge garbled box to appear in the system tray as kate tries to run inside it, and the application frame opens up without an editor. I have to killall kate to get it to go away. I'd certainly like to have this in a Qt/KDE app - the popup menus don't match the rest of the popups on my system tray, but that's a purely asthetic issue and very minor. (Oh, and to the author: I verified that the deb package runs fine in Kubuntu).