From 4d465bbb19e3264a26a9a75ad7ed5a2d43508857 Mon Sep 17 00:00:00 2001 From: Ambrevar Date: Tue, 1 Jan 2013 16:58:17 +0100 Subject: [PATCH] Awesome update finished again. --- .config/awesome/rc.lua | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 0f6cc7a2..ddabe184 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -65,11 +65,11 @@ end beautiful.init(awful.util.getdir("config") .. "/themes/custom/theme.lua") -- {{{ Wallpaper --- if beautiful.wallpaper then --- for s = 1, screen.count() do --- gears.wallpaper.maximized(beautiful.wallpaper, s, true) --- end --- end +if beautiful.wallpaper then + for s = 1, screen.count() do + gears.wallpaper.maximized(beautiful.wallpaper, s, true) + end +end -- }}} -------------------------------------------------------------------------------- @@ -127,16 +127,17 @@ if ostype == "Linux" then -- 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 - -- return separator .. '↓' .. args["{" .. device .. " down_kb}"] .. ' ↑' .. args["{" .. device .. " up_kb}"] .. '' - -- end - -- end - -- end, 3) + 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 + return separator .. '↓' .. args["{" .. device .. " down_kb}"] .. ' ↑' .. args["{" .. device .. " up_kb}"] .. '' + end + end + return "" + end, 3) -- Volume vicious.register(volmwidget, vicious.widgets.volume, separator .. "Master $1% $2 ", 1, "Master")