Created
December 16, 2014 21:37
-
-
Save y0no/fa395539d5342d6ba12b to your computer and use it in GitHub Desktop.
i3blocks volume control with pamixer
This file contains hidden or 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
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