On Wed, May 28, 2008 at 12:21 PM, A. W. <[EMAIL PROTECTED]> wrote:

> > From: John J Foerch <[EMAIL PROTECTED]>
> > To: [email protected]
> > Date: Wed, 28 May 2008 14:49:39 -0400
> > Subject: Re: [Conkeror] is there a way to escape flash without the rat?
> > A.W. <[EMAIL PROTECTED]> writes:
> >> That's the main reason I have to use the thing...
> >
> > Funny you should ask.  I was inspired to cook up a recipe to do just
> > that today.  Bind a key in your window manager to the following command:
> >
> > conkeror -batch -e 'if (w=window_watcher.activeWindow) {
> >                      unfocus(w.buffers.current);
> >                      w.minibuffer.message("focus regained");
> >                    }'
> >
> > --
> > John Foerch
> Hmm, The javascript there makes that a bit over my head in ability to
> get working with StumpWM... I could either write a little script that
> execs that or a bash alias... hmm... I'll figure it out.


Wouldn't putting something like the following in your .stumpwmrc file work:

(define-stumpwm-command "refocus-conkeror" ()
  "Re-focus the conkeror buffer.
   Useful when you want to escape Flash without a mouse."
  (shell-command "conkeror -batch -e 'if (w=window_watcher.activeWindow) {
                     unfocus(w.buffers.current);
                     w.minibuffer.message(\"focus regained\");
                   }'"))

(define-key *root-map* (kbd "X") "refocus-conkeror")

Then "C-t X" will refocus conkeror.

--
Bill Clementson
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to