
Hi folks, When I download a file in Firefox, it pops up a download dialog box where I can pick the location I want the file saved to. It pops up too far to the lower-right corner of my screen, so that I have to drag the dialog box up a bit just so I can see the "Save" and "Cancel" buttons. Is there a way to automatically move this box so that it is in a better location in my screen? I figure this would involve some sort of ManageHook; I read this http://haskell.org/haskellwiki/Xmonad/General_xmonad.hs_config_tips#Managing... but can't see how I would tell XMonad to move a window the way I can with the mouse. Thanks for your help! Omari

On Thu, Sep 03, 2009 at 06:07:11AM -0600, Omari Norman wrote:
Is there a way to automatically move this box so that it is in a better location in my screen?
I use this in my manageHook:
import XMonad.Hooks.ManageHelpers
myManageHook = composeAll . concat $ -- Float apps [ [ className =? c --> doCenterFloat | c <- myCFloats ] , [ resource =? r --> doCenterFloat | r <- myRFloats ] , [ title =? t --> doCenterFloat | t <- myTFloats ] -- more... ]
where myCFloats etc is a list of class/resource/title strings.

On Thu, Sep 03, 2009 at 02:14:50PM +0200, Nils wrote:
Is there a way to automatically move this box so that it is in a better location in my screen?
myManageHook = composeAll . concat $ -- Float apps [ [ className =? c --> doCenterFloat | c <- myCFloats ] , [ resource =? r --> doCenterFloat | r <- myRFloats ] , [ title =? t --> doCenterFloat | t <- myTFloats ] -- more...
This did not work for me. I even tried just adding className =? "Firefox" --> doCenterFloat className =? "Firefox-bin" --> doCenterFloat to my ManageHook. This will centerFloat the main Firefox window, and most of the Firefox dialog boxes. However, it does not centerFloat the SaveAs and Open dialog boxes. They float, but they are off-centered with part of the boxes hidden. If I match it by title instead title =? "Enter name of file to save to…" --> doCenterFloat it seems XMonad recognizes the window, because if I change doCenterFloat to doIgnore, I can no longer resize or even focus the SaveAs dialog. But if I leave it as doCenterFloat, the window pops up off-centered, in the lower right corner of the screen. Ideas? Thanks! --Omari
participants (2)
-
Nils
-
Omari Norman