i3blocks command update

This commit is contained in:
2025-01-22 23:13:11 -05:00
parent 485f926fb3
commit c2f645782f
2 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then
echo "vol: mute" echo " mute"
else 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 fi
-7
View File
@@ -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