Skip to content

Instantly share code, notes, and snippets.

@y0no
Created December 16, 2014 21:37
Show Gist options
  • Save y0no/fa395539d5342d6ba12b to your computer and use it in GitHub Desktop.
Save y0no/fa395539d5342d6ba12b to your computer and use it in GitHub Desktop.
i3blocks volume control with pamixer
STEP="5"
volume() {
pamixer --get-volume
}
case $BLOCK_BUTTON in
3) pamixer --toggle-mute ;; # right click, mute/unmute
4) pamixer --increase ${STEP} ;; # scroll up, increase
5) pamixer --decrease ${STEP} ;; # scroll down, decrease
esac
volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment