~set_bar -> scripts/status/*

Decomposed the set_bar monolith script into seperate 'block' scripts
This commit is contained in:
dx
2020-06-06 19:31:36 +01:00
parent 852d280157
commit 45b80e8e67
7 changed files with 67 additions and 89 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
name="$(mpc -f '%title%' | head -1)"
offline="$(echo $name | grep -E 'volume:|MPD')"
if [[ $offline ]]
then
name="MPD off"
else
name="Playing: $name"
fi
echo $name