diff options
-rwxr-xr-x | volumecontrol.bash | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/volumecontrol.bash b/volumecontrol.bash new file mode 100755 index 0000000..285d029 --- /dev/null +++ b/volumecontrol.bash @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +if [[ -n "$2" ]]; then + step=$2 +else + step=5 +fi + +case $1 in + lower) + amixer -D pulse -q set Master $step%- + ;; + raise) + amixer -D pulse -q set Master $step%+ + ;; + mute) + amixer -D pulse -q set Master toggle + ;; +esac |