File-drop area for JWM or Trayicons

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

File-drop area for JWM or Trayicons

#1 Post by MU »

You can drag and drop files from Rox-filer to a roxapp.
A rox-app is a script, that can do whatever you like with them, you could for example convert them with the comandlineprogram "lame" from wav to mp3.

You also can drop links or pictures from your webbrowser :!:


But often, you might wish, you could drag to the taskbar, as the roxapps are hidden by other windows.

So install this Dotpup (34 kb):
http://dotpups.de/dotpups/File_Managers/MU-trayicon.pup
REQUIRES:
http://dotpups.de/dotpups/System_Utilities/getdir.pup

It automatically adds a new icon to the JWM-tray, if you add these lines to /root/.jwm-tray:

Code: Select all

		<Swallow name="mu_trayicon">
			mu_trayicon
		</Swallow>
Or simply run it from the dotpups-menu.
If you use Icewm or other desktops supporting trayicons, simply start it from the dotpups-menu, too.

The icon looks like this:

Image


If you click on it, the Drop-area opens:

Image


When you drop some files, a "example-script" is run, it is only leafpad displaying the selected names:

Image


You can edit
/usr/local/MU-trayicon/resource/drag/action1
to add custom comands instead of running leafpad.

If you want to use more than one icon, you must copy all to a new folder, and rename the two files mu_trayicon and mu_trayarea , to avoid confusion, and alter the dnd.rc -files correspondingly.

Sourcecode is included, too, it is based on my Drag'n'Drop-icons I presented some weeks ago.

Mark

Post Reply