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.
> As I read the awesome doc (and I've got some help too), I can change the
> "dockable" property
> (with: awful.clinet.dockable.set), but after that, it is still needed to
> take the window with the mouse to the side of the screen.
> Maybe I'm just not enough familiar with awesome rules / struts.
> Is there a way to set a window to be docked?
> 
> 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

-- 
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451

-- 
To unsubscribe, send mail to [email protected].

Reply via email to