[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] Re: ratmenu feature requests (really well thought over)
From: |
Jonathan Walther |
Subject: |
Re: [RP] Re: ratmenu feature requests (really well thought over) |
Date: |
Fri Oct 18 09:59:04 2002 |
User-agent: |
Mutt/1.4i |
On Fri, Oct 18, 2002 at 05:42:58PM +0100, Rupert wrote:
For example,
ratmenu -defaultitem 2 menu1 cmd1 menu2 cmd2 menu3 cmd3
I'll be doing it slightly differently;
ratmenu menu1 cmd1 -default menu2 cmd3 menu3 cmd3
The last "-default" encountered will take precedence; any previous ones
will be silently ignored.
http://www.maths.lancs.ac.uk/~levene/ratpoison-winmenu.sh
is a good replacement for the ratpoison command "windows" as it invokes
ratmenu with the current window selected as the default.
This is the shell script I use to replace the "windows" command. Try it
out and report back. This script also has the current window seleted as
the default :)
#!/usr/bin/env bash
( printf "ratmenu -style dreary -fg grey -bg blue";
ratpoison -c "windows %l %n %t" | sort -nr | while read w x z; do
a=$(printf "%3q" $x); b="ratpoison -c \"select $x\"";
printf " %q\\ %q %q" "$a" "$z" "$b";
done; echo \; ) | sh
--
Geek House Productions, Ltd.
Providing Unix & Internet Contracting and Consulting,
QA Testing, Technical Documentation, Systems Design & Implementation,
General Programming, E-commerce, Web & Mail Services since 1998
Phone: 604-435-1205
Email: address@hidden
Webpage: http://reactor-core.org
Address: 2459 E 41st Ave, Vancouver, BC V5R2W2
pgpmjzduW4s1l.pgp
Description: PGP signature