To have a window placed on the floating layer as soon as it appears, one can use the doFloat
function from ManageHooks
. In addition there are some additional functions, like doCenterFloat
for instance, that are provided by ManageHelpers
.
But is there any way to specify a specific size for a window?
Right now I have an application and it just takes the whole window space. I'd like to specify a more comfortable size.
ManageHelpers
does have a function called doRectFloat
which takes a RationalRect
. In the description for doRectFloat
it states the following:
The rectangle to float the window in. 0 to 1; x, y, w, h.
But I don't know how to use this.