Added custom buttons

This commit is contained in:
Thomas FORGIONE 2017-07-04 10:10:04 +02:00
parent 6913ce1312
commit 2d518ae43d
No known key found for this signature in database
GPG Key ID: C75CD416BD1FFCE1
1 changed files with 20 additions and 0 deletions

View File

@ -387,6 +387,26 @@ globalkeys = awful.util.table.join(
awful.util.spawn("gksudo shutdown now") awful.util.spawn("gksudo shutdown now")
end, {description = "Shutdown", group="custom"}), 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 () awful.key({ }, "Print", function ()
os.execute('gnome-screenshot -fp "`echo -n ' .. home .. '"/Pictures/Captures/Capture du " && date "+%Y-%m-%d %H:%M:%S"`.png"') 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"}), end, {description = "capture the screen", group="custom"}),