Gregor Best a écrit :
At Wed, 04 Mar 2009 06:42:04 +0100
DUFLOT Jean-Luc wrote:
Hi,
When awesome starts, I have a client (ProcMeter3, a little system
monitoring application) which starts. Its position is at the top left
corner of the screen. I can size and move it manually, but I want to
make it starting elsewhere in the screen with rc.lua. I tried to use the
awful.client moveresize function , but I don't know how to use it and
where to put it. I searched for examples in the wiki rc.lua examples,
without success.
Could someone help me ?
Jean-Luc
That is quite easily doable:
add a check to your manage hook which checks for client name, class or whatever
makes your window unique (check the output of xprop to see what the values on
that window are). Inside that check, execute c:geometry({ x = 10, y = 10,
height = 200, width = 64 }) (with your desired values, of course), that should
be it. If you don't want to give the height, for example, just omit it.
Hi,
I added some lines to the following hook :
-- Hook function to execute when a new client appears.
awful.hooks.manage.register(function (c)
if use_titlebar then
-- Add a titlebar
awful.titlebar.add(c, { modkey = modkey })
end
-- test if client is ProcMeter3
local cls = c.class
if cls = "ProcMeter3" then
-- Ajustment position and size
c.geometry({ x = 100, y = 400, height = 600, width = 200 })
end
(it seems to me the command is c.geommetry in place of c:geometry)
In any case, that does'nt work. It's hard because I understand nothing
to Lua and I 'm not a programmer.
Could you give me the right command and where to put it in rc.lua ?
Jean-Luc
--
To unsubscribe, send mail to [email protected].