From 0189112e7ed31c8b7a7053ac401dc22af98340f5 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 25 Apr 2014 23:56:39 +0200 Subject: volumecontrol.bash: import crappy volume controll script --- volumecontrol.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 volumecontrol.bash 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 -- cgit v1.2.3-70-g09d2