Skip to content

Instantly share code, notes, and snippets.

@n0nuser
Created April 13, 2021 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0nuser/d31dcaabdd690f116c555c1a79b756cf to your computer and use it in GitHub Desktop.
Save n0nuser/d31dcaabdd690f116c555c1a79b756cf to your computer and use it in GitHub Desktop.
Arch Awesome
awful.keyboard.append_global_keybindings({
-- Volume Control
-- https://bbs.archlinux.org/viewtopic.php?pid=958820#p958820
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({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -c 0 set Master 1dB+") end),
awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -c 0 set Master 1dB-") end),
awful.key({ }, "XF86AudioMute", function () awful.util.spawn("amixer -c 0 set Master toggle") end),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment