aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/bar/mute
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2023-03-15 14:09:28 +0100
committerdavidpkj <davidpenkow1@gmail.com>2023-03-15 14:09:28 +0100
commit08a332d0daa13e52e4c8ae9bf2dbcb6408041a34 (patch)
treeb75fbf58009572ed8edeb81452276ff6d5d66ec8 /scripts/.local/bin/personal/bar/mute
parent2c71b057b66f817ca66b3a16eba901a9d214a3cb (diff)
Cleaned up some scripts
Diffstat (limited to 'scripts/.local/bin/personal/bar/mute')
-rwxr-xr-xscripts/.local/bin/personal/bar/mute6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/.local/bin/personal/bar/mute b/scripts/.local/bin/personal/bar/mute
index 1103c0e..834618a 100755
--- a/scripts/.local/bin/personal/bar/mute
+++ b/scripts/.local/bin/personal/bar/mute
@@ -6,9 +6,9 @@ if [[ "$1" == "shortstatus" ]]; then
VOLUME="$(pactl get-source-volume "$SOURCE" | grep -o [0-9]*%)"
if [[ "$VOLUME" == "0%" ]]; then
- echo "OFF"
+ echo "Muted"
else
- echo "ON"
+ echo ""
fi
exit
@@ -25,7 +25,9 @@ fi
if [[ "$(pactl get-source-volume $SOURCE | grep -o [0-9]*%)" == "0%" ]]; then
pactl set-source-volume "$SOURCE" 70%
+ notify-send -u low "Unmuted" -r 110
else
pactl set-source-volume "$SOURCE" 0%
+ notify-send -u low "Muted" -r 110
fi