[xmonad] darcs patch: GridSelect
Dominik Bruhn
dominik at dbruhn.de
Mon Nov 10 09:41:09 EST 2008
Here the solution to my own question, I use the following wrapper:
---snip-----
gridselector :: X()
gridselector =
do
y <- gridselect myGSConfig
case y of
Just w -> windows (W.focusWindow w)
Nothing -> return ()
where
myGSConfig = GSConfig 30 200 3 default_colorizer "xft:Sans-8"
-----------
and then add a keybinding
--- snip ----
((modm, xK_g), gridselector)
-------------
On Mon, Nov 10, 2008 at 03:04:58PM +0100, Dominik Bruhn wrote:
> Hy all,
> I think of a second case: not to bring the window to you but bring you to the
> workspace the window is on, and there focus it. Is this possible?
>
> Thanks anyway
>
> On Mon, Nov 10, 2008 at 01:36:25PM +0100, Clemens Fruhwirth wrote:
> > At Mon, 10 Nov 2008 12:17:59 +0100,
> > Dominik Bruhn wrote:
> > >
> > > [1 <text/plain; us-ascii (quoted-printable)>]
> > > Hy Clemens,
> > > can you perhaps drop some lines on the mailinglist how to use (or try out) the
> > > gridselect-module for xmonad? Im not that familiar with the xmonad-code so a
> > > small hint would help. I tried to add a keybinding ("((modm, xK_g),
> > > gridselect defaultGSConfig)") but thats not the way I is supposed to work, is
> > > it?
> >
> > Sorry, I have put my xmonad.hs line into the original mail that was
> > swallowed by gmane, and I forget about it in the second.
> >
> > Try:
> > , ((modMask', xK_f ), (gridselect defaultGSConfig) >>= (\w -> case w of
> > Just w -> windows (bringWindow w) >> focus w >> windows W.shiftMaster
> > Nothing -> return ()
> > as keybinding.
> >
> > That will forcefully raise/focus the window you selected with mod+F.
> > --
> > Fruhwirth Clemens - http://clemens.endorphin.org
> >
> >
>
> --
> Dominik Bruhn
> mailto: dominik at dbruhn.de
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
--
Dominik Bruhn
mailto: dominik at dbruhn.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/xmonad/attachments/20081110/077b6d60/attachment.bin
More information about the xmonad
mailing list