Gregor Best a écrit :
At Sun, 08 Mar 2009 17:55:37 +0100
DUFLOT Jean-Luc wrote:

(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



Well, that is because the syntax is c:geometry() :)
The . notation is used for object fields, like name, class, whatever, and the :
notation is used for methods.


I tried before, and I just tried again, it does not work : awesome
starts with another config file, probably this one in /etc/xdg

Here is the result of the config file test ; in both cases (. or :), I
get this :

lenn...@sumer:~$ awesome -k
/home/lennyjl/.config/awesome/rc.lua:399: 'then' expected near '='
✔ Configuration file syntax OK.

The line 399 is the one including "then" :

-- 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

And I don't see what is wrong here.

Jean-Luc

PS : it is not necessary to answer me directly, I am on the awesome list.


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

Reply via email to