Am 05.05.2016 um 23:09 schrieb Jeroen Budts:
> Hi all,
> 
> In my rc.lua I created a simple CPU graph using Vicious. Is it possible
> to change the direction in which this graph moves? Currently it moves
> from left to right, but I would like to see it move from right to left
> (the same as the CPu graph on xfce4-panel).
> 
> I use this code:
> cpuwidget = awful.widget.graph()
> cpuwidget:set_width(50)
> cpuwidget:set_background_color(theme.bg_normal)
> cpuwidget:set_color(theme.fg_focus)
> vicious.register(cpuwidget, vicious.widgets.cpu, "$1", 1)

Add a mirror layout around the cpuwidget. After the above, add a new line:

cpuwidget_mirrored = wibox.layout.mirror(cpuwidget, "vertical")

And then display cpuwidget_mirrored in your wibox.

Cheers,
Uli
-- 
Bruce Schneier can read and understand Perl programs.

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to