[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] come to papa... ratmenu is released
From: |
Ryan Yeske |
Subject: |
Re: [RP] come to papa... ratmenu is released |
Date: |
Sun Sep 16 19:10:02 2001 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.105 |
Jay Belanger <address@hidden> writes:
[...]
> Which brings up a thought, currently to create a large menu, I need a
> long command line:
> ratmenu foo-1:bar-1 foo-2:bar-2 ... foo-n:bar-n
> If ratmenu could read from a file (that might look like
> foo-1:bar-1
> foo-2:bar-2
> ...)
> that could make it simpler to use.
> Still, pretty nice as-is.
well, you can effectively read from a file by doing something like
this: (i wrote this for 9menu a while ago, but converted it for use
with ratmenu).
--
#!/bin/sh
# cheese.sh -- a 9menu/ratmenu based menu system for X running the ratpoison wm
(or others)
# Original Author: Ryan Yeske
# Created: Sun Oct 22 00:18:54 PDT 2000
# $Id: cheese.sh,v 1.2 2000/10/27 05:06:19 rcyeske Exp $
WM=ratpoison
OP='-label cheese'
M="<:$0"
D=':'
MENUCMD=ratmenu
PATH=$PATH:/usr/lib/xscreensaver
case $1 in
x) $MENUCMD $OP xlogo xmag 'xkill:xkill -frame' "HACKS:$0 save" $D $M ;;
term) $MENUCMD $OP xterm rxvt 9term $D $M ;;
apps) $MENUCMD $OP emacs netscape "lynx:rxvt -e lynx" gimp dia gnumeric $D $M ;;
rp) $MENUCMD $OP "version:$0 ver" "restart:$WM -r" "kill:$WM -k" $D $M ;;
ver) $MENUCMD $OP `$WM -v | sed 's/\ /_/g; s/$/:/';` ;;
save) $MENUCMD $OP galaxy bsod blaster $D $M ;;
*) $MENUCMD $OP "X:$0 x" "TERMS:$0 term" "APPS:$0 apps" "RATPOISON:$0 rp" $D
;;
esac
- Re: [RP] come to papa... ratmenu is released, (continued)
Re: [RP] come to papa... ratmenu is released, Jay Belanger, 2001/09/16
- Re: [RP] come to papa... ratmenu is released,
Ryan Yeske <=
Re: [RP] come to papa... ratmenu is released, Doug Kearns, 2001/09/18