9fans archive / 1994 / 11 / 17 /    prev

From: micro@coo... micro@coo...
Subject: 9menu
Date: Mon, 28 Nov 1994 13:05:16 -0500

Mon Nov 28 13:03:37 EST 1994

this email was sent to the sam-fans mailing list.
-----------------------------------------------------------------
>From sam-fans-owner@haw... Mon Nov 28 07:19:46 1994
Date: 	Mon, 28 Nov 1994 12:19:46 -0500
>From: arnold@cc.... (Arnold Robbins)
To: sam-fans@haw...
Subject: 9menu program available

With considerable help from David Hogan, I have written `9menu.' It
is like xmenu, in that you provide menu items and commands that go
with them on the command line. 9menu pops up a window containing
the list of items, and executes the corresponding command when a button
is pressed.

It was inspired by the GWM blit code's way of starting up remote
windows, I wanted something similar to use under 9wm (yes, it exists,
and is due to be released RSN. I've been beta-testing it).

9menu allows you to write your own menus and customize the behavior
to suit you, without the headaches of a .twmrc or .mwmrc. It is
real easy to have one item spawn another, giving a similar effect to
pull-right menus.

Here is how I use it, one for remote systems, the other for programs
I may want to run. Being lazy, I have xterm in both. I still use the 'rxterm'
script, but that's mostly for convenience. (This is from my .xinitrc.
The -geometry strings are to get 9wm to place the windows iconified.)

9menu -geometry 67x136-4+477 -iconic -popdown -label Remotes \
	'solaria:rxterm solaria.cc.gatech.edu' \
	'burdell:rxterm burdell.cc.gatech.edu' \
	'chrome:rxterm chrome.cc.gatech.edu' \
	'emory:rxterm emory.mathcs.emory.edu' \
	'acme:rxterm acme.gatech.edu' \
	'gnu:rxterm gate.gnu.ai.mit.edu' \
	'xterm:rxterm xterm' \
	exit &
9menu -geometry 103x102-3+624 -iconic -popdown -label 'X programs' \
	'xterm:rxterm xterm' \
	xtetris xlock '9wm restart:9wm restart' '9wm exit:9wm exit' exit &

This isn't as earth-shattering as sam, 9term, or 9wm, but for me, at least,
it fills a previously empty hole in the total environment.

Oh yes, where to get it:

	ftp.cc.gatech.edu:/pub/people/arnold/9menu.shar.gz

Let me know if there are any questions are problems, I've only tested
it under SunOS 4.1.3 with X11R5.

Arnold