diff --git a/.gitignore b/.gitignore index 204da06..28be66d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ rc.lua +perceptive/ diff --git a/rc.lua.blackburn b/rc.lua.blackburn index 1a33ddf..588f05a 100755 --- a/rc.lua.blackburn +++ b/rc.lua.blackburn @@ -74,7 +74,6 @@ confdir = home .. "/.config/awesome" scriptdir = confdir .. "/script/" themes = confdir .. "/themes" active_theme = themes .. "/blackburn" -weather_icons = active_theme .. "/icons/weather/" beautiful.init(active_theme .. "/theme.lua") @@ -147,6 +146,7 @@ mygames = { } mygraphics = { { "gimp" , "gimp" }, + { "nathive" , "nathive" }, { "dia", "dia" }, { "image viewer" , "viewnior" } } @@ -287,7 +287,7 @@ function show(inc_offset) }) end -function add_calendar(t_out) +function show_calendar(t_out) remove_calendar() local char_width = char_width or calculate_char_width() local header, cal_text = create_calendar() @@ -355,15 +355,10 @@ function(widget, args) end end, 1) --- MEM widget +-- Mem widget memwidget = wibox.widget.textbox() vicious.register(memwidget, vicious.widgets.mem, gray .. "Mem " .. coldef .. white .. "$2 " .. coldef, 13) -- in Megabytes --- CPU widget -cpuwidget = wibox.widget.textbox() -vicious.register(cpuwidget, vicious.widgets.cpu, gray .. "Cpu " .. coldef .. white .. "$1 " .. coldef, 3) -cpuwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn(tasks, false) end))) - -- Temp widget tempwidget = wibox.widget.textbox() vicious.register(tempwidget, vicious.widgets.thermal, gray .. "Temp " .. coldef .. white .. "$1 " .. coldef, 9, {"coretemp.0", "core"} ) @@ -398,7 +393,7 @@ function remove_info() end end -function add_info(t_out) +function show_info(t_out) remove_info() local capi = { mouse = mouse, @@ -417,7 +412,7 @@ function add_info(t_out) }) end -fshwidget:connect_signal('mouse::enter', function () add_info(0) end) +fshwidget:connect_signal('mouse::enter', function () show_info(0) end) fshwidget:connect_signal('mouse::leave', function () remove_info() end) -- Battery widget @@ -507,153 +502,8 @@ end, 10) netwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(wifi) end))) -- Weather widget -weathericon = wibox.widget.imagebox() -weathericon:set_image(beautiful.widget_weather_0) -weatherwidget = wibox.widget.textbox() -sky = "" -vicious.register(weatherwidget, vicious.widgets.weather, - function (widget, args) - if args["{tempf}"] == "N/A" or args["{sky}"] == "N/A" - then - weathericon:set_image(beautiful.widget_weather_na) - sky = "na" - return ' ' - else - -- very long work in progress - if os.date("%H") >= "6" and os.date("%H") <= "18" - then - if args["{sky}"] == "Cloudy" then - weathericon:set_image(beautiful.widget_weather_28) - sky = "28" - elseif args["{sky}"] == "Partly Cloudy" then - weathericon:set_image(beautiful.widget_weather_30) - sky = "30" - elseif args["{sky}"] == "Mostly Cloudy" then - weathericon:set_image(beautiful.widget_weather_26) - sky = "26" - else - weathericon:set_image(beautiful_widget_weather_na) - sky = "na" - end - else - if args["{sky}"] == "Cloudy" then - weathericon:set_image(beautiful.widget_weather_27) - sky = "27" - elseif args["{sky}"] == "Partly Cloudy" then - weathericon:set_image(beautiful.widget_weather_29) - sky = "29" - elseif args["{sky}"] == "Mostly Cloudy" then - weathericon:set_image(beautiful.widget_weather_26) - sky = "26" - else - weathericon:set_image(beautiful_widget_weather_na) - sky = "na" - end - end - return " " .. white .. args["{tempc}"] .. " " .. coldef - end - end, 600, "ICAO-CODE-GOES-HERE" ) - --- attached notification -local timer = timer -local io = require("io") -local debug = require("debug") -local string = string -local print = print -local script_path = scriptdir .. 'weather' -local script_cmd = script_path .. ' --id=' -local tmpfile = '/tmp/.awesome.weather' -local weather_data = "" -local notification = nil -local pattern = '%a.+' -local city_id = nil - -function execute(cmd, output, callback) - -- Executes command line, writes its output to temporary file, - -- and runs the callback with output as an argument. - local cmdline = cmd .. " &> " .. output .. " & " - io.popen(cmdline):close() - - local execute_timer = timer({ timeout = 7 }) - execute_timer:connect_signal("timeout", function() - execute_timer:stop() - local f = io.open(output) - callback(f:read("*all")) - f:close() - end) - execute_timer:start() -end - -function fetch_weather() - execute(script_cmd .. city_id, tmpfile, function(text) - old_weather_data = weather_data - weather_data = string.gsub(text, "[\n]$", "") - - -- Italian localization (work in progress) - -- can be used as a stub for other localizations - weather_data = string.gsub(weather_data, "Now", "Ora") - weather_data = string.gsub(weather_data, "Sun", "Dom") - weather_data = string.gsub(weather_data, "Mon", "Lun") - weather_data = string.gsub(weather_data, "Tue", "Mar") - weather_data = string.gsub(weather_data, "Wed", "Mer") - weather_data = string.gsub(weather_data, "Thu", "Gio") - weather_data = string.gsub(weather_data, "Fri", "Ven") - weather_data = string.gsub(weather_data, "Sat", "Sab") - weather_data = string.gsub(weather_data, "Sat", "Sab") - weather_data = string.gsub(weather_data, "Partly", "Parzialmente") - weather_data = string.gsub(weather_data, "Mostly", "Molto") - weather_data = string.gsub(weather_data, "Cloudy", "Nuvoloso") - weather_data = string.gsub(weather_data, "Showers", "Piogge") - weather_data = string.gsub(weather_data, "Rain", "Piogge") - weather_data = string.gsub(weather_data, "AM", "In Mattinata") - weather_data = string.gsub(weather_data, "PM", "Nel Pomeriggio") - weather_data = string.gsub(weather_data, "Wind", "Vento") - weather_data = string.gsub(weather_data, "Few", "Sporadiche") - weather_data = string.gsub(weather_data, "Light", "Leggere") - - if notification ~= nil and old_weather_data ~= weather_data then - add_weather(0) - end - end) -end - -function remove_weather() - if notification ~= nil then - naughty.destroy(notification) - notification = nil - end -end - -function add_weather(t_out) - remove_weather() - notification = naughty.notify({ - text = weather_data, - icon = weather_icons .. sky .. ".png" , - timeout = t_out, hover_timeout = 0.5 - }) -end - -function add_weather_notification(widget, id) - city_id = id - fetch_weather() - update_timer = timer({ timeout = 600 }) - update_timer:connect_signal("timeout", function() - fetch_weather() - end) - update_timer:start() - fetch_weather() - - widget:connect_signal("mouse::enter", function() - add_weather(0) - end) - widget:connect_signal("mouse::leave", function() - remove_weather() - end) - vicious.force({ weatherwidget } ) -end - --- the second argument must be your Yahoo Weather city id -add_weather_notification(weathericon, 123456) +require("perceptive") +perceptive.register(1234567) -- replace with your city WOEID code -- Separators spr = wibox.widget.textbox(' ') @@ -750,10 +600,8 @@ for s = 1, screen.count() do right_layout:add(spr) right_layout:add(mygmail) right_layout:add(spr) - --right_layout:add(cpuwidget) - --right_layout:add(spr) - right_layout:add(weathericon) - right_layout:add(weatherwidget) + right_layout:add(perceptive.icon) + right_layout:add(perceptive.widget) right_layout:add(spr) right_layout:add(memwidget) right_layout:add(spr) @@ -850,9 +698,9 @@ globalkeys = awful.util.table.join( awful.key({ modkey, }, "z", function () scratch.drop(terminal) end), -- Widgets popups - awful.key({ altkey, }, "c", function () add_calendar(7) end), - awful.key({ altkey, }, "h", function () add_info(7) end), - awful.key({ altkey, }, "w", function () add_weather(5) end), + awful.key({ altkey, }, "c", function () show_calendar(7) end), + awful.key({ altkey, }, "h", function () show_info(7) end), + awful.key({ altkey, }, "w", function () perceptive.show_weather(5) end), -- Volume control awful.key({ "Control" }, "Up", function () @@ -1028,8 +876,10 @@ awful.rules.rules = { floating = true } }, { rule = { class = "Gimp" }, - properties = { tag = tags[1][4], - floating=true } }, + properties = { tag = tags[1][4] } }, + + { rule = { class = "Native" }, + properties = { tag = tags[1][4] } }, { rule = { class = "Transmission-gtk" }, properties = { tag = tags[1][5] } }, diff --git a/script/weather b/script/weather deleted file mode 100755 index a0ccbe9..0000000 --- a/script/weather +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env python2.7 -# coding=utf-8 -"""Fetch weather using Yandex XML API.""" - -__author__ = "Ilia Glazkov" - -import argparse -from urllib2 import urlopen -from xml.etree.ElementTree import ElementTree - - -WEATHER_API_PREFIX = "http://weather.yahooapis.com/forecastrss?u=c&w=" -URLOPEN_TIMEOUT = 5 - -CELSIUS = '°C' -DASH = "—" - -CURRENT_DAY = 'Now' - - -def weather_url_by_id(id): - return WEATHER_API_PREFIX + str(id) - - -def fetch_weather_tree(id): - return ElementTree().parse( - urlopen(weather_url_by_id(id), timeout=URLOPEN_TIMEOUT)) - - -def format_date_string(day, text, temp, max_temp=None): - day = day or 'Now' - - if max_temp: - temp_string = DASH.join((str(temp), str(max_temp))) - else: - temp_string = str(temp) - - return '%s: %s, %s%s.' % (day, text, temp_string, CELSIUS) - - -class WeatherElement(object): - def __init__(self, element): - self.element = element - - @property - def day(self): - return self.element.get('day') or CURRENT_DAY - - @property - def text(self): - return self.element.get('text') - - @property - def temp(self): - temp = self.element.get('temp') - if temp is not None: - return str(temp) - - low, high = self.element.get('low'), self.element.get('high') - if low is not None and high is not None: - return DASH.join((str(low), str(high))) - - def get_format_string(self): - return '%s: %s, %s%s.' % (self.day, self.text, self.temp, CELSIUS) - - -def get_weather_string(tree): - condition = next(el for el in tree.iter() - if el.tag.endswith('condition')) - forecast = [el for el in tree.iter() - if el.tag.endswith('forecast')] - forecast.insert(0, condition) - - return '\n'.join(( - WeatherElement(element).get_format_string() - for element in forecast)) - - -def main(): - parser = argparse.ArgumentParser() - parser.add_argument('--id', type=int, required=True, - help='Yahoo WEOID of the city') - args = parser.parse_args() - print get_weather_string(fetch_weather_tree(args.id)) - -if __name__ == "__main__": - main() diff --git a/themes/blackburn/icons/weather/00.png b/themes/blackburn/icons/weather/00.png deleted file mode 100755 index d30e120..0000000 Binary files a/themes/blackburn/icons/weather/00.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/01.png b/themes/blackburn/icons/weather/01.png deleted file mode 100755 index aceb054..0000000 Binary files a/themes/blackburn/icons/weather/01.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/02.png b/themes/blackburn/icons/weather/02.png deleted file mode 100755 index aceb054..0000000 Binary files a/themes/blackburn/icons/weather/02.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/03.png b/themes/blackburn/icons/weather/03.png deleted file mode 100755 index d30e120..0000000 Binary files a/themes/blackburn/icons/weather/03.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/04.png b/themes/blackburn/icons/weather/04.png deleted file mode 100755 index d30e120..0000000 Binary files a/themes/blackburn/icons/weather/04.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/05.png b/themes/blackburn/icons/weather/05.png deleted file mode 100755 index 0a07b7b..0000000 Binary files a/themes/blackburn/icons/weather/05.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/06.png b/themes/blackburn/icons/weather/06.png deleted file mode 100755 index 758b01e..0000000 Binary files a/themes/blackburn/icons/weather/06.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/07.png b/themes/blackburn/icons/weather/07.png deleted file mode 100755 index 7f0d252..0000000 Binary files a/themes/blackburn/icons/weather/07.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/08.png b/themes/blackburn/icons/weather/08.png deleted file mode 100755 index 6a66140..0000000 Binary files a/themes/blackburn/icons/weather/08.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/09.png b/themes/blackburn/icons/weather/09.png deleted file mode 100755 index d00552a..0000000 Binary files a/themes/blackburn/icons/weather/09.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/10.png b/themes/blackburn/icons/weather/10.png deleted file mode 100755 index c924fac..0000000 Binary files a/themes/blackburn/icons/weather/10.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/11.png b/themes/blackburn/icons/weather/11.png deleted file mode 100755 index d00552a..0000000 Binary files a/themes/blackburn/icons/weather/11.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/12.png b/themes/blackburn/icons/weather/12.png deleted file mode 100755 index 3cc6665..0000000 Binary files a/themes/blackburn/icons/weather/12.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/13.png b/themes/blackburn/icons/weather/13.png deleted file mode 100755 index d797ee9..0000000 Binary files a/themes/blackburn/icons/weather/13.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/14.png b/themes/blackburn/icons/weather/14.png deleted file mode 100755 index 30534a2..0000000 Binary files a/themes/blackburn/icons/weather/14.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/15.png b/themes/blackburn/icons/weather/15.png deleted file mode 100755 index 6223f8f..0000000 Binary files a/themes/blackburn/icons/weather/15.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/16.png b/themes/blackburn/icons/weather/16.png deleted file mode 100755 index ddcb8f3..0000000 Binary files a/themes/blackburn/icons/weather/16.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/17.png b/themes/blackburn/icons/weather/17.png deleted file mode 100755 index d30e120..0000000 Binary files a/themes/blackburn/icons/weather/17.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/18.png b/themes/blackburn/icons/weather/18.png deleted file mode 100755 index 8ee6a7b..0000000 Binary files a/themes/blackburn/icons/weather/18.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/19.png b/themes/blackburn/icons/weather/19.png deleted file mode 100755 index 96c582e..0000000 Binary files a/themes/blackburn/icons/weather/19.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/20.png b/themes/blackburn/icons/weather/20.png deleted file mode 100755 index 009039f..0000000 Binary files a/themes/blackburn/icons/weather/20.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/21.png b/themes/blackburn/icons/weather/21.png deleted file mode 100755 index a6e2c49..0000000 Binary files a/themes/blackburn/icons/weather/21.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/22.png b/themes/blackburn/icons/weather/22.png deleted file mode 100755 index 96c582e..0000000 Binary files a/themes/blackburn/icons/weather/22.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/23.png b/themes/blackburn/icons/weather/23.png deleted file mode 100755 index 5dc1356..0000000 Binary files a/themes/blackburn/icons/weather/23.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/24.png b/themes/blackburn/icons/weather/24.png deleted file mode 100755 index 5dc1356..0000000 Binary files a/themes/blackburn/icons/weather/24.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/25.png b/themes/blackburn/icons/weather/25.png deleted file mode 100755 index 62a5350..0000000 Binary files a/themes/blackburn/icons/weather/25.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/26.png b/themes/blackburn/icons/weather/26.png deleted file mode 100755 index bac1e7e..0000000 Binary files a/themes/blackburn/icons/weather/26.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/27.png b/themes/blackburn/icons/weather/27.png deleted file mode 100755 index d8b3673..0000000 Binary files a/themes/blackburn/icons/weather/27.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/28.png b/themes/blackburn/icons/weather/28.png deleted file mode 100755 index 22b929c..0000000 Binary files a/themes/blackburn/icons/weather/28.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/29.png b/themes/blackburn/icons/weather/29.png deleted file mode 100755 index 01fcf46..0000000 Binary files a/themes/blackburn/icons/weather/29.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/30.png b/themes/blackburn/icons/weather/30.png deleted file mode 100755 index eacc98d..0000000 Binary files a/themes/blackburn/icons/weather/30.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/31.png b/themes/blackburn/icons/weather/31.png deleted file mode 100755 index 84ea140..0000000 Binary files a/themes/blackburn/icons/weather/31.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/32.png b/themes/blackburn/icons/weather/32.png deleted file mode 100755 index d9e2745..0000000 Binary files a/themes/blackburn/icons/weather/32.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/33.png b/themes/blackburn/icons/weather/33.png deleted file mode 100755 index 9e4404d..0000000 Binary files a/themes/blackburn/icons/weather/33.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/34.png b/themes/blackburn/icons/weather/34.png deleted file mode 100755 index 8fd0a5b..0000000 Binary files a/themes/blackburn/icons/weather/34.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/35.png b/themes/blackburn/icons/weather/35.png deleted file mode 100755 index d30e120..0000000 Binary files a/themes/blackburn/icons/weather/35.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/36.png b/themes/blackburn/icons/weather/36.png deleted file mode 100755 index cf08c5c..0000000 Binary files a/themes/blackburn/icons/weather/36.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/37.png b/themes/blackburn/icons/weather/37.png deleted file mode 100755 index 9279254..0000000 Binary files a/themes/blackburn/icons/weather/37.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/38.png b/themes/blackburn/icons/weather/38.png deleted file mode 100755 index 9279254..0000000 Binary files a/themes/blackburn/icons/weather/38.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/39.png b/themes/blackburn/icons/weather/39.png deleted file mode 100755 index cb803d7..0000000 Binary files a/themes/blackburn/icons/weather/39.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/40.png b/themes/blackburn/icons/weather/40.png deleted file mode 100755 index 3cc6665..0000000 Binary files a/themes/blackburn/icons/weather/40.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/41.png b/themes/blackburn/icons/weather/41.png deleted file mode 100755 index c2e8626..0000000 Binary files a/themes/blackburn/icons/weather/41.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/42.png b/themes/blackburn/icons/weather/42.png deleted file mode 100755 index d32ad22..0000000 Binary files a/themes/blackburn/icons/weather/42.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/43.png b/themes/blackburn/icons/weather/43.png deleted file mode 100755 index 6223f8f..0000000 Binary files a/themes/blackburn/icons/weather/43.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/44.png b/themes/blackburn/icons/weather/44.png deleted file mode 100755 index 62a5350..0000000 Binary files a/themes/blackburn/icons/weather/44.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/45.png b/themes/blackburn/icons/weather/45.png deleted file mode 100755 index 4d6d47a..0000000 Binary files a/themes/blackburn/icons/weather/45.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/46.png b/themes/blackburn/icons/weather/46.png deleted file mode 100755 index f9f9f5d..0000000 Binary files a/themes/blackburn/icons/weather/46.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/47.png b/themes/blackburn/icons/weather/47.png deleted file mode 100755 index c74dfd1..0000000 Binary files a/themes/blackburn/icons/weather/47.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/na.png b/themes/blackburn/icons/weather/na.png deleted file mode 100755 index 62a5350..0000000 Binary files a/themes/blackburn/icons/weather/na.png and /dev/null differ diff --git a/themes/blackburn/icons/weather/source b/themes/blackburn/icons/weather/source deleted file mode 100644 index f3baf5d..0000000 --- a/themes/blackburn/icons/weather/source +++ /dev/null @@ -1 +0,0 @@ -http://merlinthered.deviantart.com/art/plain-weather-icons-157162192 \ No newline at end of file diff --git a/themes/blackburn/theme.lua b/themes/blackburn/theme.lua index 2e51010..4c7685f 100644 --- a/themes/blackburn/theme.lua +++ b/themes/blackburn/theme.lua @@ -60,54 +60,4 @@ theme.tasklist_maximized_vertical = "" theme.widget_mail_notify = themes_dir .. "/icons/mail_notify.png" theme.widget_no_net_notify = themes_dir .. "/icons/no_net_notify.png" -theme.widget_weather_na = themes_dir .. "/icons/weather/na.png" -theme.widget_weather_00 = themes_dir .. "/icons/weather/00.png" -theme.widget_weather_01 = themes_dir .. "/icons/weather/01.png" -theme.widget_weather_02 = themes_dir .. "/icons/weather/02.png" -theme.widget_weather_03 = themes_dir .. "/icons/weather/03.png" -theme.widget_weather_04 = themes_dir .. "/icons/weather/04.png" -theme.widget_weather_05 = themes_dir .. "/icons/weather/05.png" -theme.widget_weather_06 = themes_dir .. "/icons/weather/06.png" -theme.widget_weather_07 = themes_dir .. "/icons/weather/07.png" -theme.widget_weather_08 = themes_dir .. "/icons/weather/08.png" -theme.widget_weather_09 = themes_dir .. "/icons/weather/09.png" -theme.widget_weather_10 = themes_dir .. "/icons/weather/10.png" -theme.widget_weather_11 = themes_dir .. "/icons/weather/11.png" -theme.widget_weather_12 = themes_dir .. "/icons/weather/12.png" -theme.widget_weather_13 = themes_dir .. "/icons/weather/13.png" -theme.widget_weather_14 = themes_dir .. "/icons/weather/14.png" -theme.widget_weather_15 = themes_dir .. "/icons/weather/15.png" -theme.widget_weather_16 = themes_dir .. "/icons/weather/16.png" -theme.widget_weather_17 = themes_dir .. "/icons/weather/17.png" -theme.widget_weather_18 = themes_dir .. "/icons/weather/18.png" -theme.widget_weather_19 = themes_dir .. "/icons/weather/19.png" -theme.widget_weather_20 = themes_dir .. "/icons/weather/20.png" -theme.widget_weather_21 = themes_dir .. "/icons/weather/21.png" -theme.widget_weather_22 = themes_dir .. "/icons/weather/22.png" -theme.widget_weather_23 = themes_dir .. "/icons/weather/23.png" -theme.widget_weather_24 = themes_dir .. "/icons/weather/24.png" -theme.widget_weather_25 = themes_dir .. "/icons/weather/25.png" -theme.widget_weather_26 = themes_dir .. "/icons/weather/26.png" -theme.widget_weather_27 = themes_dir .. "/icons/weather/27.png" -theme.widget_weather_28 = themes_dir .. "/icons/weather/28.png" -theme.widget_weather_29 = themes_dir .. "/icons/weather/29.png" -theme.widget_weather_30 = themes_dir .. "/icons/weather/30.png" -theme.widget_weather_31 = themes_dir .. "/icons/weather/31.png" -theme.widget_weather_32 = themes_dir .. "/icons/weather/32.png" -theme.widget_weather_33 = themes_dir .. "/icons/weather/33.png" -theme.widget_weather_34 = themes_dir .. "/icons/weather/34.png" -theme.widget_weather_35 = themes_dir .. "/icons/weather/35.png" -theme.widget_weather_36 = themes_dir .. "/icons/weather/36.png" -theme.widget_weather_37 = themes_dir .. "/icons/weather/37.png" -theme.widget_weather_38 = themes_dir .. "/icons/weather/38.png" -theme.widget_weather_39 = themes_dir .. "/icons/weather/39.png" -theme.widget_weather_40 = themes_dir .. "/icons/weather/40.png" -theme.widget_weather_41 = themes_dir .. "/icons/weather/41.png" -theme.widget_weather_42 = themes_dir .. "/icons/weather/42.png" -theme.widget_weather_43 = themes_dir .. "/icons/weather/43.png" -theme.widget_weather_44 = themes_dir .. "/icons/weather/44.png" -theme.widget_weather_45 = themes_dir .. "/icons/weather/45.png" -theme.widget_weather_46 = themes_dir .. "/icons/weather/46.png" -theme.widget_weather_47 = themes_dir .. "/icons/weather/47.png" - return theme