]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

#25 fix attempt
authorluke bonham <dadasignificanulla@gmail.com>
Fri, 7 Feb 2014 11:39:18 +0000 (12:39 +0100)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:30:38 +0000 (13:30 +0200)
widgets/net.lua
widgets/yawn/init.lua

index d79e117c2c4007cbf3e8ae7017a7b203ad1f34c6..af97201143399d3e5c0408ab4b29b233658c017a 100644 (file)
@@ -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",
index b4d9c058dfa1f177641595717b85c8fb3608e243..af7befcd96e67ec9b578bb9230f4fe504ee30918 100644 (file)
@@ -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