I used rhythmbox to play music, so this is my shortcuts.
awful.key( { "Shift", "Alt" }, "c", function () awful.util.spawn("rhythmbox-client --no-start --play-pause", false) end), awful.key( { "Shift", "Alt" }, "n", function () awful.util.spawn("rhythmbox-client --no-start --next", false) end), awful.key( { "Shift", "Alt" }, "p", function () awful.util.spawn("rhythmbox-client --no-start --previous", false) end), awful.key({ "Alt" }, "F12", function () awful.util.spawn("rhythmbox-client --no-start --volume-up", false) end), awful.key({ "Alt" }, "F11", function () awful.util.spawn("rhythmbox-client --no-start --volume-down", false) end),
If you get the error message, do not forget to enable MPRIS D-bus Interface plug-in in Rythmbox settings.
(rhythmbox-client:15057): Rhythmbox-WARNING **: MPRIS D-Bus interface not available, some things won't work