Skip to content

Instantly share code, notes, and snippets.

@ShadOoW
Last active November 2, 2015 15:19
Show Gist options
  • Save ShadOoW/74f2878739d0724eb32f to your computer and use it in GitHub Desktop.
Save ShadOoW/74f2878739d0724eb32f to your computer and use it in GitHub Desktop.
-- Multimedia Keys
awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer sset Master unmute") awful.util.spawn("amixer set Master 9%+") end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer sset Master unmute") awful.util.spawn("amixer set Master 9%-") end),
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer sset Master toggle") end),
awful.key({ }, "XF86AudioPlay", function () awful.util.spawn("mocp --toggle-pause") end),
awful.key({ }, "XF86AudioStop", function () awful.util.spawn("mocp --toggle-pause") end),
awful.key({ }, "XF86AudioPrev", function () awful.util.spawn("mocp --previous") end),
awful.key({ }, "XF86AudioNext", function () awful.util.spawn("mocp --next") end),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment