From 98c5d04bb264cc903b935897b2188d8f2be4c7a1 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 12 Dec 2018 14:45:10 +0100 Subject: i3blocks modules. --- vol.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 vol.sh (limited to 'vol.sh') 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 -- cgit v1.2.1