[xmonad] Hello, and firefox
i92guboj at terra.es
Thu Jun 12 16:21:18 EDT 2008
On Thu, 12 Jun 2008 15:54:20 -0400
Adam Vogt <vogt.adam at gmail.com> wrote:
> * On Wednesday, June 11 2008, Jesús Guerrero wrote:
> >My current approach, right now, is to launch everything from my .xinitrc,
> >and then I have manageHook on my xmonad.hs file to W.shift the firefox
> >window to workspace 2. The problem is that, this method, effectively
> >shifts ALL the firefox windows to that workspace, which means that if I
> That is the point of the manageHook: windows go where they belong, no
> matter when you start them.
I know. The problem is that I only want to send to workspace 2 the first
instance, which is the one I launch from my .xinitrc. See below...
> >click an url on sylpheed on workspace 3, then I have to go to workspace 2
> >to be able to see the firefox window containing the page associated to the
> >url I just clicked on sylpheed.
> So you can either somehow run firefox with a different class (and match to
> that), but I don't know how, without using a function from xlib to do that:
> XSetClassHint(). An it isn't supposed to be used like that.
Well, firefox has a whole plethora of problems. Let alone the whole mass
of child windows it creates for one or another purpose. I think we would
need a whole layout just for it or something.
The big problem is that all the children are "Firefox" or "Firefox-bin"
depending on your distro and firerox version. You can match by title or
resource, which is a real pain, because there's something called "localization",
not to speak about the wonderful title changes that are tipical on a web
I don't think i'ts possible to change the firefox WM_CLASS without hacking
a bit either. But I digress and this is anyway a different issue (as I said,
firefox has lots of them).
The original purpose of my original post was to find a better way to launch
a firefox instance at workspace 2, without forcing the rest of firefox
instances to be shifted to that workspace. I used manageHook because I
don't have any other thing in my xmonad toolbox right now, but as I said,
I doubt that's the correct way for what I intend.
> Or you can scrap the manageHook and let firefox start on the currently
> visible workspace, which is pretty close to what you want anyways?
Yep. I can just erase the manageHook reference to firefox, yet one problem
remains: how to launch firefox at workspace 2 when I startx. Not that it's
a critical problem. I just was wondering if there's some way to do so. I just
wanted to know if there's a way to do so on xmonad. I am pretty new to this
stuff. If there is not, then I suppose I can open it myself, it's not a big
And, a bit off-topic, but related still: is there a way to tell xmonad
the desired size and position for a floated window?
Thanks for your response :)
Jesús Guerrero <i92guboj at terra.es>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080612/7bc6f7c8/attachment.bin
More information about the xmonad