Added custom buttons
This commit is contained in:
parent
6913ce1312
commit
2d518ae43d
|
@ -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"}),
|
||||||
|
|
Loading…
Reference in New Issue