steamburn: updated weather localization

This commit is contained in:
luke bonham 2013-03-27 21:25:55 +01:00
parent 620f1c4880
commit 24689086bc
1 changed files with 28 additions and 30 deletions

View File

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