On 05/08/2016 01:46 PM, Uli Schlachter wrote:
> 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")

That line gave me an error, but changing it to
cpuwidget_mirrored = wibox.layout.mirror(cpuwidget, { vertical = true })
works :)

Thanks for the help,
Jeroen



-- 
website: http://budts.be/ - twitter: @teranex
___________________________________
Registered Linux User #482240 - GetFirefox.com - ubuntu.com


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to