opencode and mpd enhancements

This commit is contained in:
2026-03-12 22:26:26 -04:00
parent 945f8b3204
commit 76ed9417f9
2 changed files with 12 additions and 2 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
#!/bin/bash
if mpc status | grep -q "\[playing\]"; then
mpc status | head -1
c_song=$(mpc current)
if [ -n "${c_song}" ]; then
p_status=$(mpc status "%state%")
echo -e "[${p_status}] ${c_song}"
else
echo -n "mpd"
fi