Re: [xmonad] darcs patch: GridSelect

At Mon, 10 Nov 2008 12:17:59 +0100, Dominik Bruhn wrote:
[1
] 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

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
] 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@dbruhn.de

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
] 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@dbruhn.de
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Dominik Bruhn mailto: dominik@dbruhn.de
participants (2)
-
Clemens Fruhwirth
-
Dominik Bruhn