Awesome update finished again.

master
Ambrevar 2013-01-01 16:58:17 +01:00
parent 6fcecdde5a
commit 4d465bbb19
1 changed files with 16 additions and 15 deletions

View File

@ -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 .. '<span color="#CC9393">↓' .. args["{" .. device .. " down_kb}"] .. '</span> <span color="#7F9F7F">↑' .. args["{" .. device .. " up_kb}"] .. '</span>'
-- 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 .. '<span color="#CC9393">↓' .. args["{" .. device .. " down_kb}"] .. '</span> <span color="#7F9F7F">↑' .. args["{" .. device .. " up_kb}"] .. '</span>'
end
end
return ""
end, 3)
-- Volume
vicious.register(volmwidget, vicious.widgets.volume, separator .. "Master $1% $2 ", 1, "Master")