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

music player clients

This commit is contained in:
Son Pham 2013-08-19 10:33:55 -05:00
parent 1920e31278
commit bd363a4967
7 changed files with 37 additions and 37 deletions

View file

@ -741,19 +741,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),

View file

@ -665,19 +665,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),

View file

@ -335,20 +335,20 @@ musicwidget:set_bgimage(beautiful.widget_bg)
musicwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end))) musicwidget:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end)))
mpd_icon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end))) mpd_icon:buttons(awful.util.table.join(awful.button({ }, 1, function () awful.util.spawn_with_shell(musicplr) end)))
prev_icon:buttons(awful.util.table.join(awful.button({}, 1, function () prev_icon:buttons(awful.util.table.join(awful.button({}, 1, function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end))) end)))
next_icon:buttons(awful.util.table.join(awful.button({}, 1, function () next_icon:buttons(awful.util.table.join(awful.button({}, 1, function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end))) end)))
stop_icon:buttons(awful.util.table.join(awful.button({}, 1, function () stop_icon:buttons(awful.util.table.join(awful.button({}, 1, function ()
play_pause_icon:set_image(beautiful.play) play_pause_icon:set_image(beautiful.play)
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end))) end)))
play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1, function () play_pause_icon:buttons(awful.util.table.join(awful.button({}, 1, function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end))) end)))
-- /home fs widget -- /home fs widget

View file

@ -745,19 +745,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),

View file

@ -719,19 +719,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),

View file

@ -835,19 +835,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),

View file

@ -692,19 +692,19 @@ globalkeys = awful.util.table.join(
-- Music control -- Music control
awful.key({ altkey, "Control" }, "Up", function () awful.key({ altkey, "Control" }, "Up", function ()
awful.util.spawn( "mpc toggle", false ) awful.util.spawn_with_shell( "mpc toggle || ncmpcpp toggle || ncmpc toggle || pms toggle", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end), end),
awful.key({ altkey, "Control" }, "Down", function () awful.key({ altkey, "Control" }, "Down", function ()
awful.util.spawn( "mpc stop", false ) awful.util.spawn_with_shell( "mpc stop || ncmpcpp stop || ncmpc stop || pms stop", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Left", function () awful.key({ altkey, "Control" }, "Left", function ()
awful.util.spawn( "mpc prev", false ) awful.util.spawn_with_shell( "mpc prev || ncmpcpp prev || ncmpc prev || pms prev", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),
awful.key({ altkey, "Control" }, "Right", function () awful.key({ altkey, "Control" }, "Right", function ()
awful.util.spawn( "mpc next", false ) awful.util.spawn_with_shell( "mpc next || ncmpcpp next || ncmpc next || pms next", false )
vicious.force({ mpdwidget } ) vicious.force({ mpdwidget } )
end ), end ),