aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vol.sh')
-rwxr-xr-xvol.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/vol.sh b/vol.sh
new file mode 100755
index 0000000..827bf7b
--- /dev/null
+++ b/vol.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+if [ $1 = "mute" ]; then
+ pactl set-sink-mute 0 toggle
+else
+ pactl set-sink-volume 0 $1%
+fi
+
+notify-send -t 500 "$(~/scripts/i3blocks/i3vol.sh)"
+pkill -SIGRTMIN+10 i3blocks