Updated mpd (markdown)

This commit is contained in:
Luke Bonham 2013-09-07 16:37:33 -07:00
parent 54dc002251
commit 28de71f2df
1 changed files with 16 additions and 16 deletions

16
mpd.md
View File

@ -47,23 +47,23 @@ Finally, you can control the widget with key bindings like these:
-- MPD control -- MPD control
awful.key({ altkey, "Control" }, "Up", awful.key({ altkey, "Control" }, "Up",
function () function ()
awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false ) awful.util.spawn_with_shell("mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle")
mympd.notify() mpdwidget.notify()
end), end),
awful.key({ altkey, "Control" }, "Down", awful.key({ altkey, "Control" }, "Down",
function () function ()
awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false ) awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop")
mympd.notify() mpdwidget.notify()
end), end),
awful.key({ altkey, "Control" }, "Left", awful.key({ altkey, "Control" }, "Left",
function () function ()
awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false ) awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev")
mympd.notify() mpdwidget.notify()
end), end),
awful.key({ altkey, "Control" }, "Right", awful.key({ altkey, "Control" }, "Right",
function () function ()
awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false ) awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next")
mympd.notify() mpdwidget.notify()
end), end),
where `altkey = "Mod1"`. where `altkey = "Mod1"`.