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:

improve nyxmms current notification
authormartin f. krafft <madduck@madduck.net>
Mon, 22 Apr 2013 12:01:28 +0000 (14:01 +0200)
committermartin f. krafft <madduck@madduck.net>
Mon, 22 Apr 2013 12:01:28 +0000 (14:01 +0200)
.config/awesome/rc.lua

index 1bbe2d48c2652b650f29b4dd570dcae333de5853..c558b8dc0b5221d7466a73e517b8a7161a760cfe 100644 (file)
@@ -451,7 +451,9 @@ globalkeys = awful.util.table.join(globalkeys,
   awful.key({ cmdmodkey }, "space", function () awful.util.spawn("nyxmms2 toggle") end),
   awful.key({ cmdmodkey }, "backslash", function ()
     local f = io.popen('nyxmms2 current', 'r')
-    naughty.notify({ title = "Now playing", text = string.sub(f:read(), 10), timeout = 5 })
+    for s, t in string.gmatch(f:read(), '(%w+):%s+([^:]+)') do
+      naughty.notify({ title = s, text = t, timeout = 5 })
+    end
     f:close()
   end),
   awful.key({ cmdmodkey, "Shift" }, "backslash", function ()