aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2013-11-26 18:10:41 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2013-11-26 18:10:41 +0100
commit71ea0f3dbfcd358fb4c64c6450b2518092b8c449 (patch)
treed2e55474796add48aa6dc5f96dbdc5f1193d68af
parent211d4509c146a3224b859c3e16b609a1f769d568 (diff)
downloadvicious-legacy-71ea0f3dbfcd358fb4c64c6450b2518092b8c449.tar.xz
README: enable caching in vicious.widgets.cpu example
-rw-r--r--README4
1 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index 79c40bd..24be226 100644
--- a/README
+++ b/README
@@ -445,10 +445,12 @@ CPU usage widget
cpuwidget:set_background_color("#494B4F")
cpuwidget:set_color({ type = "linear", from = { 0, 0 }, to = { 50, 0 },
stops = { { 0, "#FF5656" }, { 0.5, "#88A175" }, { 1, "#AECF96" }})
+ vicious.cache(vicious.widgets.cpu)
vicious.register(cpuwidget, vicious.widgets.cpu, "$1", 3)
- updated every 3 seconds, feeds the graph with total usage
- percentage of all CPUs/cores
+ percentage of all CPUs/cores and enable caching of this widget
+ type
Format functions