From e6339143e103abac500fe3a3c54e88860b4b0a49 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 15 Apr 2020 15:00:06 +0100 Subject: [PATCH] Tidy volume script --- bin/.bin/volume | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/.bin/volume b/bin/.bin/volume index 1dfb6a70..03a8f51e 100755 --- a/bin/.bin/volume +++ b/bin/.bin/volume @@ -5,7 +5,7 @@ function drawBar(){ - local percent=$1; + local percent="$1"; for i in {1..10}; do local boxPercent=$(($i*10)) @@ -37,7 +37,6 @@ volume="$(amixer -D default sget Master | grep -o '\[.*\%' | head -n 1 | tr -d speakerStatus="$(amixer -D default sget Master | grep -o '\[\(on\|off\)' | head -n 1 | tr -d '[')" -echo "$speakerStatus" if [[ "$speakerStatus" == "on" ]]; then command -v notify-send && notify-send -R "/tmp/volume" "Volume" "$(drawBar $volume) ${volume}%" else