From 4befeb28cc3fead7543004e79e92684bc753afdc Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 29 Jan 2018 00:29:10 +0100 Subject: Add multimedia keys --- rc.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/rc.lua b/rc.lua index 0dca004..5659913 100644 --- a/rc.lua +++ b/rc.lua @@ -528,13 +528,28 @@ awful.key({ modkey, "Shift" }, "s", hotkeys_popup.show_help, {descriptio awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer set Master 9%-") end), awful.key({ }, "XF86AudioMute", function () - awful.util.spawn("amixer sset Master toggle") end), + awful.util.spawn("amixer -D pulse sset Master toggle") end), + awful.key({ }, "F12", function () + awful.util.spawn("amixer -D pulse set Master 9%+") end), + awful.key({ }, "F10", function () + awful.util.spawn("amixer -D pulse set Master 9%-") end), + awful.key({ }, "F11", function () + awful.util.spawn("amixer -D pulse sset Master toggle") end), + awful.key({ }, "XF86AudioPlay", function () awful.util.spawn("mpc toggle") end), awful.key({ }, "XF86AudioNext", function () awful.util.spawn("mpc next") end), awful.key({ }, "XF86AudioPrev", function () awful.util.spawn("mpc prev") end), + awful.key({ "Control" }, "F11", function () + awful.util.spawn("mpc toggle") end), + awful.key({ "Control" }, "F12", function () + awful.util.spawn("mpc next") end), + awful.key({ "Control" }, "F10", function () + awful.util.spawn("mpc prev") end), + + awful.key({ modkey}, "F1", function () awful.util.spawn("roxterm -e bash -c \"mpd;mpc random on;mpc repeat on;ncmpcpp\"") end, {description = "MPD", group = "awesome"}), -- cgit v1.2.3