aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/volume
blob: 98747c98aced9f8cfabc05aec6d00a9c5281bff4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

case $BLOCK_BUTTON in
  3) pamixer --toggle-mute ;; # right click
  4) pamixer --increase 5 ;; # scroll up
  5) pamixer --decrease 5 ;; # scroll down
esac

volume=`pamixer --get-volume-human`
echo ": $volume"