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 +++++++++++++++++++ volumecontrol.bash | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100755 volumecontrol delete mode 100755 volumecontrol.bash 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 diff --git a/volumecontrol.bash b/volumecontrol.bash deleted file mode 100755 index 285d029..0000000 --- a/volumecontrol.bash +++ /dev/null @@ -1,19 +0,0 @@ -#!/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