From: martin f. krafft Date: Wed, 27 Mar 2013 09:31:28 +0000 (+0100) Subject: fix xmms status X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/e543ed4d76be02b90325fa22f7b4baacd8a3c54e?ds=sidebyside;hp=9fc65316a830abd0648b2f8df4f839fb55408fff fix xmms status --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 0cf1ab6..bd7df7f 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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 ()