2011-10-04 19:49 keltezéssel, Uli Schlachter írta:
> On 04.10.2011 19:23, Gáspár Nándor wrote:
>> Dear awesomers!
>>
>> I'm trying to run gimp with automatically docked "toolbar" windows, but
>> without any succes.
>> ...
>>
>> Any help would be appreciated!
> No idea if this works:
>
> function d(c)
> local s = c.screen
> local workarea = screen[s].workarea
> local struts = c:struts()
> local geom = c:geometry()
>
> awful.client.floating.set(c, true)
>
> struts.left = geom.width
> c:struts(struts)
>
> geom.x = workarea.x
> geom.y = workarea.y
> geom.height = workarea.height
> c:geometry(geom)
> end
Finally, the following rules had made it working:
( Note: I had to write "Gimp" instead of "gimp" to match the rule... )
{ rule = { class = "Gimp", role = "gimp-toolbox" },
properties = { floating = true, size_hints_honor = false },
callback = function( c )
local s = c.screen
local workarea = screen[s].workarea
local strutwidth = 212
c:struts( { left = strutwidth })
c:geometry( { x = 0, width = strutwidth, y = workarea.y, height
= workarea.height } )
end
},
{ rule = { class = "Gimp", role = "gimp-dock" },
properties = { floating = true, size_hints_honor = false },
callback = function( c )
local s = c.screen
local workarea = screen[s].workarea
local strutwidth = 212
c:struts( { right = strutwidth })
c:geometry( { x = workarea.width-strutwidth, width = strutwidth,
y = workarea.y, height = workarea.height } )
end
},
Nándor, Gáspár
--
To unsubscribe, send mail to [email protected].