From dda107bb1eac16855209e4e6d86e6cf5c7d676e8 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sat, 16 May 2015 01:32:08 +0200 Subject: volumecontrol.bash: Strip .bash extension --- volumecontrol | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 volumecontrol (limited to 'volumecontrol') diff --git a/volumecontrol b/volumecontrol new file mode 100755 index 0000000..285d029 --- /dev/null +++ b/volumecontrol @@ -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 -- cgit v1.2.3-70-g09d2