From fe5585f18049a386d72444abf5115dcb0e68824d Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Sat, 28 Jan 2017 23:47:01 +0100 Subject: [PATCH] template updated --- rc.lua.template | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rc.lua.template b/rc.lua.template index 572df3a..4e2f973 100644 --- a/rc.lua.template +++ b/rc.lua.template @@ -394,7 +394,18 @@ globalkeys = awful.util.table.join( awful.spawn.with_shell("mpc next") beautiful.mpd.update() end), - --]] + awful.key({ altkey }, "0", + function () + local common = { text = "MPD widget ", position = "top_middle", timeout = 2 } + if beautiful.mpd.timer.started then + beautiful.mpd.timer:stop() + common.text = common.text .. lain.util.markup.bold("ON") + else + beautiful.mpd.timer:start() + common.text = common.text .. lain.util.markup.bold("OFF") + end + naughty.notify(common) + end), -- Copy primary to clipboard (terminals to gtk) awful.key({ modkey }, "c", function () awful.spawn("xsel | xsel -i -b") end),