From e543ed4d76be02b90325fa22f7b4baacd8a3c54e Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 27 Mar 2013 10:31:28 +0100 Subject: [PATCH] fix xmms status --- .config/awesome/rc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 () -- 2.39.2