From df04a05d7238aa09a3d87b44dd0f564b883c5205 Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Tue, 1 Jan 2013 11:14:37 +0100 Subject: [PATCH] Awesome update 9. --- .config/awesome/rc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 0884c851..d4157479 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -126,12 +126,13 @@ if ostype == "Linux" then vicious.register(cpuwidget, vicious.widgets.cpu, separator .. 'CPU $1%') -- Net + -- CHECK: not sure if args["{".. device .." carrier}"] may have values below 0. What do values of the args table mean? local networks = { "eth0", "wlan0" } vicious.register(netwidget, vicious.widgets.net, function (widget, args) for _,device in pairs(networks) do value = tonumber(args["{".. device .." carrier}"]) - if value ~= nil and value > 0 then + if value ~= nil and value ~= 0 then return separator .. '↓' .. args["{" .. device .. " down_kb}"] .. ' ↑' .. args["{" .. device .. " up_kb}"] .. '' end end