Skip to content

Instantly share code, notes, and snippets.

@lowstz
Created August 20, 2012 10:35
Show Gist options
  • Save lowstz/3403026 to your computer and use it in GitHub Desktop.
Save lowstz/3403026 to your computer and use it in GitHub Desktop.
awesome 音量控制
-- volume control
awful.key({ modkey, }, "Up", function () awful.util.spawn_with_shell("amixer -q sset Master 10%+ unmute") end),
awful.key({ modkey, }, "Down", function () awful.util.spawn_with_shell("amixer -q sset Master 10%- unmute") end),
awful.key({}, "XF86AudioMute", function () awful.util.spawn_with_shell("amixer -q sset Master toggle") end),
awful.key({}, "XF86AudioLowerVolume", function () awful.util.spawn_with_shell("amixer -q sset Master 10%- unmute") end),
awful.key({}, "XF86AudioRaiseVolume", function () awful.util.spawn_with_shell("amixer -q sset Master 10%+ unmute") end),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment