You are not logged in.

#1 2013-03-25 18:55:32

Archdove
Member
Registered: 2011-09-23
Posts: 118

[Solved] Awesome WM - Position of floating window when opening center

Hi

I wonder how i can set the position of a floating window. I've tried a fiew launcher and want to settle with bashrun.
I want the dialog to open in the center of the screen (active screen if possible). How can i do that?

Ragards, Archdove

Last edited by Archdove (2013-03-25 19:59:27)

Offline

#2 2013-03-25 19:58:48

Archdove
Member
Registered: 2011-09-23
Posts: 118

Re: [Solved] Awesome WM - Position of floating window when opening center

395     { rule = { instance = "bashrun" },
396       properties = { floating = true },
397       callback = function (c)
398         awful.placement.centered(c,nil)
399       end
400     },

Well that was easy... hard part was to find the right approach in the api doc.

Offline

Board footer

Powered by FluxBB