[Conkeror] is there a way to escape flash without the rat?

Bill Clementson billclem at gmail.com
Wed May 28 13:18:30 PDT 2008


On Wed, May 28, 2008 at 12:21 PM, A. W. <gzeusmants at gmail.com> wrote:

> > From: John J Foerch <jjfoerch at earthlink.net>
> > To: conkeror at mozdev.org
> > Date: Wed, 28 May 2008 14:49:39 -0400
> > Subject: Re: [Conkeror] is there a way to escape flash without the rat?
> > A.W. <gzeusmants at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/conkeror/attachments/20080528/d6a93840/attachment.html 


More information about the Conkeror mailing list