[xmonad] Re: Emergency terminal

Spencer Janssen sjanssen at cse.unl.edu
Fri Feb 22 17:23:08 EST 2008

On Thu, Feb 21, 2008 at 02:11:44AM +0800, brian wrote:
> On Feb 20, 2008 5:06 PM, Spencer Janssen <sjanssen at cse.unl.edu> wrote:
> > On Wed, Feb 20, 2008 at 03:45:32PM +0800, brian wrote:
> > > But I wish it worked more like the Ion scratchpad. In that one, the
> > > floating rectangle was permanent, and the hotkey just switched to it.
> > > I'm trying to use the scratchpad to do 'vim ~/TODO' and it's a little
> > > troublesome because the hotkey starts another one rather than just
> > > causing the existing one appear.
> >
> > Hmm, perhaps combine this with the new "run or raise" contrib?
> OK, I did all the usual stuff except
> runOrRaise (XMonad.terminal conf ++ " -title todo -e vim -X ~/TODO")
> (title =? "todo"))
> That's pretty cool, but it switches focus to the scratchpad as opposed
> to bringing it to me. Still, progress.

So I think the best thing to do is to add some flexibility to WindowGo.  We can
split out the window location code into a separate function:

    locateWindow :: Query Bool -> X (Maybe Window)

Then we can combine this location function with other user routines.

Spencer Janssen

More information about the xmonad mailing list