On Sat, 12 Jan 2013 21:06:00 +0100
david cobac <[email protected]> wrote:
> Hi, i'm new with awesome
> i'd like to change wibox widgets with this kind of code :
>
> --
> ilw = 1
> myWiboxWidgets = {
> {cputw,},
> {batw, },
> {gputw,}
> }
> function changeWidgets ()
> ilw = ( ilw % #myWiboxWidgets ) + 1
> mywibox.widgets = myWiboxWidgets[ilw]
> end
> --
>
> but the third time i change, the wibox is and stay empty.
> What am i doing wrong ?
>
> awesome v3.4.11
Your 'increment' line is not quite right. If you've changed twice so
that ilw = 3, and you change again, then
ilw = (3 % 3) + 1 = 4
rather than 1.
Cheers,
Bryan
--
If Steins Gate so decrees, then so am I compelled to behave!
--
To unsubscribe, send mail to [email protected].