From 1c96367c6a4ab4666acf58e7f5949b906c760b2b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 29 Jul 2012 20:10:13 +0200 Subject: [PATCH] widgets: reduce CPU usage --- rc/widgets.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc/widgets.lua b/rc/widgets.lua index c74c590..f4b0568 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -24,7 +24,7 @@ vicious.register(cpuwidget, vicious.widgets.cpu, function (widget, args) return string.format('%2d%%', args[1]) - end, 2) + end, 7) local cpuicon = widget({ type = "imagebox" }) cpuicon.image = image(awful.util.getdir("config") .. "/icons/widgets/cpu.png") @@ -56,7 +56,7 @@ if config.hostname == "guybrush" then return string.format('%s%d%%', args[1], current) end, - 61, "BAT1") + 59, "BAT1") end local baticon = widget({ type = "imagebox" }) baticon.image = image(awful.util.getdir("config") .. "/icons/widgets/bat.png") @@ -111,7 +111,7 @@ vicious.register(netup, vicious.widgets.net, local memwidget = widget({ type = "textbox" }) vicious.register(memwidget, vicious.widgets.mem, '$1%', - 13) + 19) local memicon = widget({ type = "imagebox" }) memicon.image = image(awful.util.getdir("config") .. "/icons/widgets/mem.png") @@ -121,7 +121,7 @@ volicon.image = image(awful.util.getdir("config") .. "/icons/widgets/vol.png") local volwidget = widget({ type = "textbox" }) vicious.register(volwidget, vicious.widgets.volume, '$2 $1%', - 2, "Master") + 17, "Master") volume = loadrc("volume", "vbe/volume") volwidget:buttons(awful.util.table.join( awful.button({ }, 1, volume.mixer), @@ -156,7 +156,7 @@ vicious.register(fswidget, vicious.widgets.fs, end end return result - end, 10) + end, 53) local systray = widget({ type = "systray" })