On Mon, Feb 18, 2002 at 06:53:39PM -0500, Jan Schaumann wrote:
> David Terrell <[EMAIL PROTECTED]> wrote:
> > I'm trying to get completely set up with a 
> > no-mouse-required existance.
> 
> Somebody else already answered your shading question, but I thought you
> might be interested in a not-so-popular but why-didn't-i-think-of-this
> way of using bbkeys to exit out of Blackbox (something I've long been
> looking for as it was the only thing I ever used the mouse for[1]):
> 
> (Linux)
> 
> KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand), \
>       DoThis(kill `ps h -C blackbox -o "%p"`)
> 
> (NetBSD)
> 
> KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand),
>       DoThis(kill `ps ax | grep [b]lackbox | awk '{print $1;}'`)

This only works under a shell with job control (openbsd's sh is ksh, 
linux's sh is bash, both would work...):
.xsession:
blackbox &
echo $! >! ~/.bb.pid
fg

.bbkeysrc:
KeyToGrab(F12), WithModifier(Control), WithAction(ExecCommand), DoThis(xargs kill < 
~/.bb.pid)

-- 
David Terrell   | p = "you are nasty"          q = "my first name is Janet"
Nebcorp PM      | r = "my first name is baby"  s = "My name is Miss Jackson"
[EMAIL PROTECTED]    | (!r -> q) & (p -> s)        - Braverman's Third Lemma
wwn.nebcorp.com | !r & (!p -> q) & (p -> s)   - Libor's Corollary

Reply via email to