From: luke bonham Date: Fri, 7 Feb 2014 11:39:18 +0000 (+0100) Subject: #25 fix attempt X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/cec4a68c630b93315c43f53eef3f9a416726a3a3?ds=sidebyside;hp=-c #25 fix attempt --- cec4a68c630b93315c43f53eef3f9a416726a3a3 diff --git a/widgets/net.lua b/widgets/net.lua index d79e117..af97201 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -35,7 +35,7 @@ function net.get_device() if ws ~= nil then return ws:gsub(": UP", "") else - return "" + return "network off" end end @@ -80,10 +80,8 @@ local function worker(args) then if helpers.get_map(iface) then - n_title = iface - if n_title == "" then n_title = "network" end naughty.notify({ - title = n_title, + title = iface, text = "no carrier", timeout = 7, position = "top_left", diff --git a/widgets/yawn/init.lua b/widgets/yawn/init.lua index b4d9c05..af7befc 100644 --- a/widgets/yawn/init.lua +++ b/widgets/yawn/init.lua @@ -58,12 +58,12 @@ local function fetch_weather() yawn.icon:set_image(icon_path .. "na.png") if text == "" then weather_data = "Service not available at the moment." - yawn.widget:set_text(" N/A") + yawn.widget:set_text(" N/A ") else weather_data = "City not found!\n" .. "Are you sure " .. city_id .. " is your Yahoo city ID?" - yawn.widget:set_text(" ?") + yawn.widget:set_text(" ? ") end return end