Shift windows around

Hello, I have 0 or more windows with a specific class name and I'd like to move each to its own workspace. Is this possible? -- Tony Morris http://tmorris.net/

Sounds like you want to add a manageHook. More information in the
documentation:
http://xmonad.org/xmonad-docs/xmonad/XMonad-ManageHook.html
http://xmonad.org/xmonad-docs/xmonad/XMonad-Core.html#v%3AmanageHook
~d
Quoting Tony Morris
Hello, I have 0 or more windows with a specific class name and I'd like to move each to its own workspace. Is this possible?
-- Tony Morris http://tmorris.net/

Just hunting through there. Would you suggest that doF is the right function
to use?
On Wed, Sep 22, 2010 at 11:43 PM,
Sounds like you want to add a manageHook. More information in the documentation: http://xmonad.org/xmonad-docs/xmonad/XMonad-ManageHook.html http://xmonad.org/xmonad-docs/xmonad/XMonad-Core.html#v%3AmanageHook ~d
Quoting Tony Morris
: Hello, I have 0 or more windows with a specific class name and I'd like to
move each to its own workspace. Is this possible?
-- Tony Morris http://tmorris.net/
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Tony Morris http://tmorris.net/

Tony Morris
Just hunting through there. Would you suggest that doF is the right function to use?
You probably want `doShift`. There are some decent examples here: http://www.haskell.org/haskellwiki/Xmonad/General_xmonad.hs_config_tips#Mana... Notably `className =? "foo" --> doShift "wherever"`.

On Wed, Sep 22, 2010 at 04:41:17PM +1000, Tony Morris wrote:
Hello, I have 0 or more windows with a specific class name and I'd like to move each to its own workspace. Is this possible?
I'm not sure I fully understand what you want to do. Is this something you want to do immediately when each window is created? (In that case a ManageHook may be indeed what you want.) Or is this something you would want to do at some later time? Also, is there a 1-1 correspondence between class names and workspaces? Or did you mean that there are a bunch of windows with the SAME class name (say "foo") and you want to take all the windows with class name "foo" and move each to a separate workspace? All of these are possible but the way to accomplish them depends on precisely what you're trying to do. -Brent

When the machine boots I am going to start several of the same application. I want to ensure they each get their own workspace. That is, no two instances of this application will ever appear on the same workspace. This is why I think doF may be appropriate, but I am not completely sure and struggling to improve this confidence with the types. On 23/09/10 23:56, Brent Yorgey wrote:
On Wed, Sep 22, 2010 at 04:41:17PM +1000, Tony Morris wrote:
Hello, I have 0 or more windows with a specific class name and I'd like to move each to its own workspace. Is this possible?
I'm not sure I fully understand what you want to do. Is this something you want to do immediately when each window is created? (In that case a ManageHook may be indeed what you want.) Or is this something you would want to do at some later time? Also, is there a 1-1 correspondence between class names and workspaces? Or did you mean that there are a bunch of windows with the SAME class name (say "foo") and you want to take all the windows with class name "foo" and move each to a separate workspace?
All of these are possible but the way to accomplish them depends on precisely what you're trying to do.
-Brent _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- Tony Morris http://tmorris.net/

* On Friday, September 24 2010, Tony Morris wrote:
When the machine boots I am going to start several of the same application. I want to ensure they each get their own workspace. That is, no two instances of this application will ever appear on the same workspace.
This is why I think doF may be appropriate, but I am not completely sure and struggling to improve this confidence with the types.
Hello Tony, This module should help you more directly: http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-SpawnOn.html Possibly modified to include features in here: http://code.haskell.org/XMonadContrib/XMonad/Util/SpawnOnce.hs Note that SpawnOn is simplified (incompatibly different) if you built xmonad from darcs, since you don't have to pass that 'Spawner' IORef around in that case. Adam
participants (5)
-
Adam Vogt
-
Brent Yorgey
-
Justin Bogner
-
Tony Morris
-
wagnerdm@seas.upenn.edu