1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 19:22:32 +00:00

steamburn: updated weather localization

This commit is contained in:
luke bonham 2013-03-27 21:25:55 +01:00
parent 620f1c4880
commit 24689086bc

View file

@ -3,7 +3,7 @@
-- Steamburn Awesome WM 3.5.+ config -- -- Steamburn Awesome WM 3.5.+ config --
-- github.com/copycat-killer -- -- github.com/copycat-killer --
-- - -- -
--[[ ]]-- --[[ ]--
-- Required Libraries -- Required Libraries
@ -114,7 +114,6 @@ if beautiful.wallpaper then
end end
end end
-- Tags -- Tags
tags = { tags = {
@ -504,12 +503,11 @@ weatherwidget = wibox.widget.textbox()
vicious.register(weatherwidget, vicious.widgets.weather, vicious.register(weatherwidget, vicious.widgets.weather,
function (widget, args) function (widget, args)
if args["{tempf}"] == "N/A" then if args["{tempf}"] == "N/A" then
return "No Info" return gray .. "No " .. coldef .. white .. "Info " .. coldef
else else
-- work in progress -- work in progress - ☂☔☃ ⛆⛇⛈ 🌂
-- ☀☂☔☃ ⛆⛇⛈ 🌂 if( args["{sky}"] == "N/A" or string.find(args["{sky}"], "Clear") ~= nil ) then args["{sky}"] = "<span font=\"Symbola 10\" rise=\"-1535\">☼</span>"
if( args["{sky}"] == "N/A" ) then args["{sky}"] = "☼" elseif( string.find(args["{sky}"], "Cloudy") ~= nil ) then args["{sky}"] = "<span font=\"Symbola 11\" rise=\"-1620\">☁</span>"
elseif( string.find(args["{sky}"], "Cloudy") ~= nil ) then args["{sky}"] = "<span font=\"Terminus 11\" rise=\"-1620\">⛅</span>"
end end
return gray .. args["{sky}"] .. coldef .. " " .. white .. args["{tempc}"] .. " " .. coldef return gray .. args["{sky}"] .. coldef .. " " .. white .. args["{tempc}"] .. " " .. coldef
end end