From 2d518ae43dd99e1eb70abdeb63f491123f4ef7c3 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 4 Jul 2017 10:10:04 +0200 Subject: [PATCH] Added custom buttons --- awesome/rc.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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"}),