]> 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:

fix xmms status
authormartin f. krafft <madduck@madduck.net>
Wed, 27 Mar 2013 09:31:28 +0000 (10:31 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 27 Mar 2013 09:31:28 +0000 (10:31 +0100)
.config/awesome/rc.lua

index 0cf1ab6dd05e0101bc0e454928a458da4489283a..bd7df7f6bde17473f2b271d569eb3e8e21bef39f 100644 (file)
@@ -447,8 +447,8 @@ globalkeys = awful.util.table.join(globalkeys,
   awful.key({ cmdmodkey }, "Right", function () awful.util.spawn("nyxmms2 next") end),
   awful.key({ cmdmodkey }, "space", function () awful.util.spawn("nyxmms2 toggle") end),
   awful.key({ cmdmodkey }, "backslash", function ()
-    local f = io.popen('nyxmms2 status', 'r')
-    naughty.notify({ title = "Now playing", text = f:read(), timeout = 5 })
+    local f = io.popen('nyxmms2 current', 'r')
+    naughty.notify({ title = "Now playing", text = string.sub(f:read(), 10), timeout = 5 })
     f:close()
   end),
   awful.key({ cmdmodkey, "Shift" }, "backslash", function ()