Gregor Best a écrit :
I just installed procmeter3 and tested it for myself and it turns out that
procmeter behaves quite oddly: You can resize it horizontally without any
problems, and also setting the x and y position works, but resizing vertically
is not possible because the procmeter window keeps resizing itself if it's
height is changed. The bit of code I used for testing was:

  if c.instance == "procmeter3" then
      awful.client.floating.set(c, true)
      c:geometry({ x = 20, y = 30, width = 200, height = 400 })
  end

You could solve this problem by disabling the resizing in procmeter itself, but
I don't know how to accomplish that as I haven't had a look at the code yet.


Some news : your solution above did not work. Reading it I understood that it was a solution for awesome 3.2, and I had awesome 3.1 !!

I installed awesome 3.2, and tried the two solutions below :

    local cls = c.class
    if cls == "ProcMeter3" then
        c:geometry({ x = 1165, y = 30 })
    end

OR

  if c.instance == "procmeter3" then
      awful.client.floating.set(c, true)
      c:geometry({ x = 1165, y = 30 })
  end

Both work perfectly ! The only difference is the focus when displaying : the first solution opens the window focused, since the second opens the window normal (it's visible with the borders color). But it's not an issue.

In fact I did not need the H and V sizes, so no need to specify the sizes. Procmeter3 adjusts the V size to display automatically all specified sensors. So it seems normal the V resizing does not work !!

Anyway, thanks a lot to you to have helped me (:-) !

Jean-Luc DUFLOT

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

Reply via email to