On 26.10.2011 00:11, Thorsten Sperber wrote:
> Am 25.10.2011 23:12, schrieb Daniel Martí:
>> You might have more luck emailing julien about this. And, if you do get an
>> answer, it would be very kind of you to forward it to this list :-)
>>
>
> Oh, the authors of the more interesting (and sadly not working widgets,
> grepped for Author):
>
> /usr/share/awesome/lib/obvious/net/init.lua:-- Author: Uli Schlachter
> --
> /usr/share/awesome/lib/obvious/cpu/init.lua:-- Author: Uli Schlachter
> --
> /usr/share/awesome/lib/obvious/io/init.lua:-- Author: Uli Schlachter
> --
> /usr/share/awesome/lib/obvious/mem/init.lua:-- Author: Uli Schlachter
> --
>
>
> And Uli is pretty active here and already responded in this thread :)
>
> Oh, and regarding xephyr: yes, I'm using that. On the "host" desktop I
> keep said logs scrolling in an xterm so I can see whats going wrong and
> eventually fix it.
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
--
- He made himself, me nothing, you nothing out of the dust
- Er machte sich mir nichts, dir nichts aus dem Staub
--
To unsubscribe, send mail to [email protected].