summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-01-29 00:29:10 +0100
committerache <ache@ache.one>2018-01-29 00:29:10 +0100
commit4befeb28cc3fead7543004e79e92684bc753afdc (patch)
tree87ad46d7daee07ad963d70079ecb89b8dff15cd0
parentAdd an option to toggle battery warning (diff)
Add multimedia keys
-rw-r--r--rc.lua17
1 files changed, 16 insertions, 1 deletions
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"}),