aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vol.sh')
-rwxr-xr-xvol.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/vol.sh b/vol.sh
index 00d97bf..6ba41a6 100755
--- a/vol.sh
+++ b/vol.sh
@@ -1,10 +1,10 @@
#!/bin/sh
sink="$(pactl list sinks | grep "^Sink " | cut -d'#' -f2)"
-if [ $1 = "mute" ]; then
+if [ "$1" = "mute" ]; then
pactl set-sink-mute "$sink" toggle
else
- pactl set-sink-volume "$sink" $1%
+ pactl set-sink-volume "$sink" "$1%"
fi
-dunstify -r $(dunstifyIDs.sh "vol") -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
+dunstify -r "$(dunstifyIDs.sh "vol")" -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
pkill -SIGRTMIN+10 i3blocks