From c2f645782f3ded029a721f40214146e387959691 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 22 Jan 2025 23:13:11 -0500 Subject: [PATCH] i3blocks command update --- Scripts/i3blocks_volume | 4 ++-- i3blocks_volume | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) delete mode 100755 i3blocks_volume diff --git a/Scripts/i3blocks_volume b/Scripts/i3blocks_volume index 84da634..787e621 100755 --- a/Scripts/i3blocks_volume +++ b/Scripts/i3blocks_volume @@ -1,7 +1,7 @@ #!/bin/bash if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then - echo "vol: mute" + echo " mute" else - echo "vol: $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" + echo " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" fi diff --git a/i3blocks_volume b/i3blocks_volume deleted file mode 100755 index 787e621..0000000 --- a/i3blocks_volume +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then - echo " mute" -else - echo " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{printf "%s", substr($5, 1, length($5) - 1)}')" -fi