[xmonad] starting workspace for each screen

Spencer Janssen sjanssen at cse.unl.edu
Fri Jun 13 03:58:28 EDT 2008

On Fri, Jun 13, 2008 at 09:38:44AM +0200, Jesús Guerrero wrote:
> Hello again,
> Does anyone know if there's any way to set the starting workspace for each monitor?
> Maybe a way to fake some keystrokes would work as well if there's no easy way to
> do this in xmonad. For example, what I want to do, following the default xmonad
> config, would be the equivalent of:
>   alt+e (select second monitor)
>   alt+8 (pick workspace 8)
>   alt+w (select first monitor again)
> I use workspaces 1-7 for real work, and 8 is just for mplayer, so I want to put the
> 8th workspace on the second monitor and give back the input focus to the first
> monitor.
> Regards.
> -- 
> Jesús Guerrero <i92guboj at terra.es>

Try startupHook?  Something like this should work (assuming the default
workspace names):
    startupHook = windows (W.view "1" . W.view "8" . W.view "2")

Spencer Janssen

More information about the xmonad mailing list