(Scripts/status)~few minor edits for functionality and cleanliness

Status scripts needed some updating for dwmblocks, so did it.
This commit is contained in:
2021-07-10 17:11:33 +01:00
parent be603ca4a2
commit c616335809
4 changed files with 5 additions and 14 deletions

View File

@@ -1,11 +1,2 @@
#!/usr/bin/env bash
sinks="$(pactl list sinks)"
vol="$(echo "$sinks" | grep '[0-9]\+%' | sed "s,.* \([0-9]\+\)%.*,\1,;1q")"
mute="$(echo "$sinks" | grep "Mute: " | sed "s/.*Mute: //g")"
case "$mute" in
"no")
printf "";;
"yes")
printf "";;
esac
echo " $vol%"
echo "" $(pamixer --get-volume-human)