diff --git a/.config/awesome/config.lua.example b/.config/awesome/config.lua.example index 8f6eea21..647ba784 100644 --- a/.config/awesome/config.lua.example +++ b/.config/awesome/config.lua.example @@ -7,7 +7,8 @@ config.font_awesome_size = "9" config.font_xterm = "Source Code Pro" config.font_xterm_size = "10" config.titlebars_enabled = "true" -config.cityid = "2810284" -- (Westerland, DE) +config.openweather_api_key = "INSERT_KEY_HERE" +config.cityid = "INSERT_CITY_ID_HERE" config.quake_width = 1024 config.quake_height = 768 config.autostart = { diff --git a/.config/awesome/mainmenu.lua b/.config/awesome/mainmenu.lua index fe62fe6e..0b409025 100644 --- a/.config/awesome/mainmenu.lua +++ b/.config/awesome/mainmenu.lua @@ -101,7 +101,7 @@ multimediamenu = { { "k3b", "/usr/bin/k3b", "/usr/share/icons/hicolor/48x48/apps/k3b.png" }, { "k9copy", "/usr/bin/k9copy", "/usr/share/icons/hicolor/48x48/actions/k9copy.png" }, { "kaffeine", "/usr/bin/kaffeine", "/usr/share/icons/hicolor/scalable/apps/kaffeine.svg" }, - { "mediathek", "/usr/bin/mediathek", "/usr/share/pixmaps/MediathekView.svg" }, + { "mediathekview", "/usr/bin/mediathekview", "/usr/share/icons/hicolor/scalable/apps/mediathekview.svg/MediathekView.svg" }, { "spotify", "/usr/bin/spotify-tray", "/usr/share/pixmaps/spotify-client.png" }, { "tvbrowser", "/usr/bin/tvbrowser", "/usr/share/icons/hicolor/48x48/apps/tvbrowser.png" }, { "vlc", "/usr/bin/vlc", "/usr/share/icons/hicolor/48x48/apps/vlc.png" }, diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index e091e8ba..29a2b6fd 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -137,6 +137,7 @@ local thermalwidget = wibox.widget.textbox() vicious.register(thermalwidget, vicious.widgets.thermal, "$1°C ", 20, config.thermal_zone ) local myweather = lain.widget.weather({ + APPID = config.openweather_api_key, city_id = config.cityid, notification_preset = { font = beautiful.font }, notification_text_fun = function (wn) @@ -146,7 +147,6 @@ local myweather = lain.widget.weather({ local desc = wn["weather"][1]["description"] return string.format("%s: %s, %d°C/%d°C ", day, desc, tmin, tmax) end, - }) myweather.attach(myweather.icon)