aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-03-20 16:29:09 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-03-20 16:29:09 +0100
commit186d6435c9a5b5831dd1b1a522107cb96b2910e5 (patch)
treebea920629c69bcc51699ecd520832d61d6cf0a0f
parente8105a1c99d4bdf1a6a5397058a5dcd3a7440963 (diff)
downloadscripts-186d6435c9a5b5831dd1b1a522107cb96b2910e5.tar.gz
scripts-186d6435c9a5b5831dd1b1a522107cb96b2910e5.zip
Dunstified and minor changes.
-rwxr-xr-xvol.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/vol.sh b/vol.sh
index 127ff37..00d97bf 100755
--- a/vol.sh
+++ b/vol.sh
@@ -1,10 +1,10 @@
#!/bin/sh
-sink=$(pactl list sinks | grep "^Sink " | cut -d'#' -f2)
+sink="$(pactl list sinks | grep "^Sink " | cut -d'#' -f2)"
if [ $1 = "mute" ]; then
- pactl set-sink-mute $sink toggle
+ pactl set-sink-mute "$sink" toggle
else
- pactl set-sink-volume $sink $1%
+ pactl set-sink-volume "$sink" $1%
fi
-notify-send -h string:x-canonical-private-synchronous:vol -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
+dunstify -r $(dunstifyIDs.sh "vol") -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
pkill -SIGRTMIN+10 i3blocks