Add mpd to status bar

This commit is contained in:
DogeyStamp 2021-03-26 21:28:24 -04:00
parent e6b3f239f8
commit dfe7ee92e6

View File

@ -10,7 +10,7 @@ xss-lock -- slock &
dunst &
while true; do
xsetroot -name "$(date) $(acpi | cut -d',' -f2)"
xsetroot -name "$(mpc -f %title% | head -n 1) $(mpc status | awk '/^\[playing\]/ { sub(/\/.+/,"",$4); print $3 }') | $(date) $(acpi | cut -d',' -f2)"
sleep 2
done &