From 200a72327ad6362f57623541a50ec67389ee623d Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Thu, 4 Mar 2021 02:03:32 +0100 Subject: [PATCH] Minor correction --- volumectl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/volumectl b/volumectl index 8de3699..ef87c58 100755 --- a/volumectl +++ b/volumectl @@ -14,7 +14,7 @@ ADDITIONAL_FLAGS=("--allow-boost") ## Default values NOTIFICATION_ENABLED=1 -NOTIFICATION_TIMEOUT=5000 +NOTIFICATION_TIMEOUT=3000 CONFIG_PATH="$XDG_CONFIG_HOME/`basename $0`/config.ini" VERBOSE=0 @@ -57,7 +57,7 @@ volume_up_by () { verbose && echo "Increasing volume by $1, with \`$cmd\`" verbose && echo "Volume before command: $(get_volume)" - $cmd + sh -c "$cmd" verbose && echo "Volume after command: $(get_volume)" notify } @@ -97,7 +97,7 @@ volume_big_down () { volume_up () { local cmd="volume_up_by $NORMAL_DELTA" verbose && echo "Increasing the volume, with \`$cmd\`" - sh -c "$cmd" + $cmd } volume_down () {