Created
April 13, 2021 23:26
-
-
Save n0nuser/d31dcaabdd690f116c555c1a79b756cf to your computer and use it in GitHub Desktop.
Arch Awesome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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