[xmonad] switching to the workspace where a window just went?
Adam Vogt
vogt.adam at gmail.com
Mon Jan 2 19:18:37 CET 2012
Hi Lara,
doTo is in XMonad.Actions.CycleWS in XMonadContrib 0.10 but not in
XMonadContrib 0.9.*
getSortByIndex needs an
import XMonad.Util.WorkspaceCompare
and finally I suspect shift might be XMonad.StackSet.shift, which with
your imports can be referred to as W.shift
Hope this helps.
--
Adam
* On Monday, January 02 2012, Lara Michaels wrote:
>Brandon, thank you so much for this. (It had landed in my spam folder so I only found it now.)
>
>After adding that to my xmonad.hs I get these errors:
>xmonad.hs:68:17: Not in scope: `doTo'
>
>xmonad.hs:68:35: Not in scope: `getSortByIndex'
>
>xmonad.hs:68:67: Not in scope: `shift'
>
>Please check the file for errors.
>
>I checked the header of xmonad.hs and I am importing the file you mentioned:
>
>import Control.OldException
>import Control.Monad
>
>import XMonad
>import XMonad.Hooks.EwmhDesktops
>import qualified XMonad.StackSet as W
>import XMonad.Actions.CycleRecentWS
>import XMonad.Config.Gnome
>import XMonad.Hooks.DynamicLog
>import qualified XMonad.StackSet as W
>import XMonad.Util.EZConfig
>import XMonad.Actions.CycleWS
>import XMonad.ManageHook
>import XMonad.Hooks.ManageHelpers
>import XMonad.Layout.ShowWName
>import XMonad.Hooks.ManageDocks
>import XMonad.Util.Run(spawnPipe)
>import System.IO
>
>so I wonder why this is happening?
>
>thank you for any help!
>~l
>
>
>
>________________________________
> From: Brandon Allbery <allbery.b at gmail.com>
>To: Mike Meyer <mwm at mired.org>
>Cc: xmonad at haskell.org
>Sent: Thursday, December 29, 2011 2:57 AM
>Subject: Re: [xmonad] switching to the workspace where a window just went?
>
>
>
>
>Looking at the source to cycleWS, looks like what you want is something like
>
>> ,("C-<F1>", doTo Next EmptyWS getSortByIndex $ \ws -> windows (shift ws) >>
>> windows (greedyView ws))
>--
>brandon s allbery allbery.b at gmail.com
>wandering unix systems administrator (available) (412) 475-9364 vm/sms
>
>
>_______________________________________________
>xmonad mailing list
>xmonad at haskell.org
>http://www.haskell.org/mailman/listinfo/xmonad
>_______________________________________________
>xmonad mailing list
>xmonad at haskell.org
>http://www.haskell.org/mailman/listinfo/xmonad
More information about the xmonad
mailing list