~set_bar -> scripts/status/*
Decomposed the set_bar monolith script into seperate 'block' scripts
This commit is contained in:
10
Scripts/.local/scripts/status/music
Executable file
10
Scripts/.local/scripts/status/music
Executable 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
|
||||
Reference in New Issue
Block a user