mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 01:48:59 +02:00
widgets: fix CPU graph
The default maximum value is 1 and vicious already normalizes graph values to be between 0 and 1.
This commit is contained in:
parent
f5fd2c1ba4
commit
026c03dd8b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ vicious.register(datewidget, vicious.widgets.date,
|
||||||
local cpuwidget = widget({ type = "textbox" })
|
local cpuwidget = widget({ type = "textbox" })
|
||||||
cpuwidget.text = '<span font="Terminus 8" color="' .. beautiful.fg_widget_label .. '">CPU: </span>'
|
cpuwidget.text = '<span font="Terminus 8" color="' .. beautiful.fg_widget_label .. '">CPU: </span>'
|
||||||
local cpugraph = awful.widget.graph()
|
local cpugraph = awful.widget.graph()
|
||||||
cpugraph:set_width(45):set_height(12):set_max_value(100)
|
cpugraph:set_width(45):set_height(12)
|
||||||
cpugraph:set_border_color(beautiful.fg_widget_border)
|
cpugraph:set_border_color(beautiful.fg_widget_border)
|
||||||
cpugraph:set_gradient_angle(0):set_gradient_colors({
|
cpugraph:set_gradient_angle(0):set_gradient_colors({
|
||||||
beautiful.fg_widget_start, beautiful.fg_widget_center, beautiful.fg_widget_end
|
beautiful.fg_widget_start, beautiful.fg_widget_center, beautiful.fg_widget_end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue