1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

Merge pull request #58 from Backgammon-/ncmpcpp

removed ncmpcpp cli control due to deprecation
This commit is contained in:
Luke Bonham 2014-10-01 19:20:41 +02:00
commit d1f66520d5
8 changed files with 27 additions and 27 deletions

View file

@ -457,17 +457,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -512,17 +512,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -457,17 +457,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -202,18 +202,18 @@ mpd_icon:buttons(awful.util.table.join(awful.button({ }, 1,
function () awful.util.spawn_with_shell(musicplr) end))) function () awful.util.spawn_with_shell(musicplr) end)))
prev_icon:buttons(awful.util.table.join(awful.button({}, 1, prev_icon:buttons(awful.util.table.join(awful.button({}, 1,
function () function ()
awful.util.spawn_with_shell("mpc prev || ncmpcpp prev || ncmpc prev || pms prev") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
end))) end)))
next_icon:buttons(awful.util.table.join(awful.button({}, 1, next_icon:buttons(awful.util.table.join(awful.button({}, 1,
function () function ()
awful.util.spawn_with_shell("mpc next || ncmpcpp next || ncmpc next || pms next") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end))) end)))
stop_icon:buttons(awful.util.table.join(awful.button({}, 1, stop_icon:buttons(awful.util.table.join(awful.button({}, 1,
function () function ()
play_pause_icon:set_image(beautiful.play) play_pause_icon:set_image(beautiful.play)
awful.util.spawn_with_shell("mpc stop || ncmpcpp stop || ncmpc stop || pms stop") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
end))) end)))
play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1, play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1,
@ -592,17 +592,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -520,17 +520,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -509,17 +509,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -455,17 +455,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),

View file

@ -464,17 +464,17 @@ globalkeys = awful.util.table.join(
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") awful.util.spawn_with_shell("mpc stop || ncmpc stop || pms stop")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc prev || ncmpc prev || pms prev")
mpdwidget.update() mpdwidget.update()
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") awful.util.spawn_with_shell("mpc next || ncmpc next || pms next")
mpdwidget.update() mpdwidget.update()
end), end),