diff options
author | davidpkj <davidpenkow1@gmail.com> | 2023-03-15 14:09:28 +0100 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-03-15 14:09:28 +0100 |
commit | 08a332d0daa13e52e4c8ae9bf2dbcb6408041a34 (patch) | |
tree | b75fbf58009572ed8edeb81452276ff6d5d66ec8 /scripts/.local/bin/personal/bar/mute | |
parent | 2c71b057b66f817ca66b3a16eba901a9d214a3cb (diff) |
Cleaned up some scripts
Diffstat (limited to 'scripts/.local/bin/personal/bar/mute')
-rwxr-xr-x | scripts/.local/bin/personal/bar/mute | 6 |
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 |