From 48ef0718cc7ca1f72386261869abd928621f40bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Mon, 30 Dec 2024 18:51:37 +0100 Subject: [PATCH] audio-control unnecessary '$' for arithmetic variables. --- audio-control | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/audio-control b/audio-control index dbc9107..e96c61c 100755 --- a/audio-control +++ b/audio-control @@ -18,15 +18,15 @@ case $1 in ;; "vol-up") pactl set-sink-volume 0 +5% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' + pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "vol-down") pactl set-sink-volume 0 -5% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' + pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "reset") pactl set-sink-volume 0 50% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' + pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "help") echo "USAGE: audio-control