On 26.10.2011 12:46, Thorsten Sperber wrote:
> On 26.10.2011 09:29, Uli Schlachter wrote:
>> Hm, ok, let's get creative:
>>
>> $ lua -e 'f=io.open("/proc/stat") l=f:read() for k in l:gmatch("%d+") do
>> print(k) end'
>>
>> That's what the cpu widget does to gets its data. The rest is some maths on 
>> the
>> result. Does that work for you?
>>
>> Uli
>>
> Yes, works so far (spits out some cpu values). I also found out that the
> "non-working" widgets use obvious.lib.widget, so it might just be a
> usage error on my side.
> 
> myStatus[s].widgets =
>     [...]
>      obvious.cpu(), -- doesnt work
>     wisep, -- seperator
>     obvious.loadavg(), -- works
>     wisep,
>     obvious.mem(), -- doesnt work
>     wisep,
>     obvious.net.recv("eth0"), -- doesnt work
>     obvious.net.send("eth0"), -- neither
>     wisep,
>     obvious.basic_mpd(), -- a little buggy on my arch box, works on
> debian -> have to look for myself
>     wisep,
>     obvious.volume_alsa(), -- works, great widget
>     wisep,
>     obvious.fs_usage(), -- doesnt work
>     [...]

Let's try something inspired by Rainux Luo's config:

   obvious.mem()
   obvious.mem().widget,
   obvious.mem()[1],
   obvious.mem()[1].widget,

Perhaps one of those works?

Uli

-- 
- Buck, when, exactly, did you lose your mind?
- Three months ago. I woke up one morning married to a pineapple.
  An ugly pineapple... But I loved her.

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

Reply via email to