diff --git a/awesome/rc.lua b/awesome/rc.lua index 5b15989..3f3e73b 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -387,6 +387,26 @@ globalkeys = awful.util.table.join( awful.util.spawn("gksudo shutdown now") end, {description = "Shutdown", group="custom"}), + awful.key({ }, "XF86AudioPlay", function() + awful.util.spawn("music-client play", false) + update_volume() + end, {description = "play or pause the current music", group="custom"}), + + awful.key({ }, "XF86AudioStop", function() + awful.util.spawn("music-client stop", false) + update_volume() + end, {description = "stop the current music", group="custom"}), + + awful.key({ }, "XF86AudioNext", function() + awful.util.spawn("music-client next", false) + update_volume() + end, {description = "skip to the next music", group="custom"}), + + awful.key({ }, "XF86AudioPrev", function() + awful.util.spawn("music-client previous", false) + update_volume() + end, {description = "skip to the previous music", group="custom"}), + awful.key({ }, "Print", function () os.execute('gnome-screenshot -fp "`echo -n ' .. home .. '"/Pictures/Captures/Capture du " && date "+%Y-%m-%d %H:%M:%S"`.png"') end, {description = "capture the screen", group="custom"}),