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

@ -1,9 +1,9 @@
--[[ ]]--
--[[ ]]--
-- -
-- Steamburn Awesome WM 3.5.+ config --
-- github.com/copycat-killer --
-- -
-- 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