From cb637b9fb8f57633da1ee2d173beb405bc8ec6a4 Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 6 Oct 2018 11:27:23 +0200 Subject: [PATCH] add multimadia keys to awesome --- awesome/.config/awesome/rc.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 6f44ace..72e08a8 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -331,7 +331,18 @@ globalkeys = gears.table.join( {description = "lua execute prompt", group = "awesome"}), -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, - {description = "show the menubar", group = "launcher"}) + {description = "show the menubar", group = "launcher"}), + awful.key({ },"XF86AudioRaiseVolume", function() awful.spawn("pamixer -i 5") end), + awful.key({ }, "XF86AudioLowerVolume", function () awful.spawn("pamixer -d 5") end), + --multimedia keys + awful.key({ }, "XF86MonBrightnessUp", function () awful.spawn("light -A 10") end), + awful.key({ }, "XF86MonBrightnessDown", function () awful.spawn("light -U 10") end), + awful.key({ }, "XF86AudioMute", function () awful.spawn("pamixer -t") end), + awful.key({ }, "XF86AudioPlay", function () awful.spawn("mpc toggle") end), + awful.key({ }, "XF86AudioStop", function () awful.spawn("mpc stop") end), + awful.key({ }, "XF86AudioNext", function () awful.spawn("mpc next") end), + awful.key({ }, "XF86AudioPrev", function () awful.spawn("mpc prev") end) + ) clientkeys = gears.table.join(