
13 Jun
2008
13 Jun
'08
12:44 a.m.
Jesús Guerrero wrote:
And, a bit off-topic, but related still: is there a way to tell xmonad the desired size and position for a floated window?
Using a ManageHook, indeed yes. This will work only when the window is spawned, of course, since that's the only time ManageHooks are called. XMonad.Hooks.ManageHelpers contains a function called doRectFloat. It works like the core doFloat ManageHook, but you specify an XMonad.StackSet.RationalRect to give its position and size as a fraction of the screen size. For an example, see XMonad.Util.Scratchpad, the module for which I wrote doRectFloat. Braden Shepherdson shepheb