virtanen <[EMAIL PROTECTED]> wrote:
> > I use 9menu and dfm (an excellent file-manager) so that 
> I have an icon of a
> > Palm Pilot on my desktop and when I double-click it I get a menu
> appear
> > which
> > has on it all the Linux Pilot apps I use. It works very smoothly and
> gives
> > me a lot of control.
> 
> I've fond of dfm as well. It is small and effective. 
> But what kind of program is 9menu?

Sorry for taking so long to reply - I only just found out one of my
procmail filters was sending Debian list mail to ~/mail/Debian instead
of ~/mail/debian, consequently I only just got your message.

9menu is *extremely* useful. It allows you to create a script which when
run will produce a menu. Clicking on an item will run the designated
app. Very simple.

I use Window Maker and have, for instance, wmppp running (like biff) to
show when I receive mail. In the wmppp settings I have configured it to
run a 9menu menu when I click on it, so I get a menu saying Get, Read,
quit - if I select Get then fetchmail etc. is fired up, if I select Read
I get my email app, and so on.

With dfm, I have setup the dfm config file, .dfmext, to run a 9menu menu
when I click on a tar.gz file. I get options to unzip and untar it to
the directory I have desgnated for this, browse it with TkZip, view the
contents with Xless etc.. Very useful.

If I click on an executable file, I get two options: Exec the file, or
view it in a text editor.

I use 9menu all over the place. It allows me a menu of IPs to dial, I
easily choose to download news or view it.

9menu is very small and is available as a debian package. A 9menu file
to do the tar.gz thing mentioned above would look like this:

9menu -teleport -popup -font
-adobe-helvetica-bold-r-*-*-11-*-*-*-*-*-*-*\
                list:"tar tzf $1 | xless" \
                untar:"tar xzvf $1 -C /usr/src/scratch" \
                browse:"TkZip $1 " \
                view:"zmore $1 | xless" \
                quit:"

The -teleport option tells 9menu to open its menu next to where you
clicked the mouse, or you can specify an exact loaction using -geometry.

The 9menu file for the exec datafiles in dfm:

9menu -teleport -popup -font
-adobe-helvetica-bold-r-*-*-11-*-*-*-*-*-*-*\
                exec:"exec $1"\
                view:"nedit $1"\
                quit:""

As you can see, very simple and very neat.

9menu was written as part of the Plan9 window manager, but naturally can
be used alone.

Hope this helps. Just grab it and install and see what you think.


--
Phillip Deackes
Debian Linux (Potato) 

Reply via email to