commit ee9ff0acd534ef3b8a7e1409af954c6a0715a9fc parent 4e0286082ca466bfd3a114d06db7d3c1f93e5fdb Author: Anton Konyahin <me@konyahin.xyz> Date: Fri, 14 Apr 2023 19:56:08 +0300 scripts: add current song to dwm status Diffstat:
M | scripts/dot-bin/status.sh | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/dot-bin/status.sh b/scripts/dot-bin/status.sh @@ -7,6 +7,11 @@ while true; do CHARGE=$(apm -l) DATE=$(date '+ %H:%M %d-%m-%Y') - xsetroot -name "π$CHARGE% $LAYOUT $DATE" + SONG=$(mpc current) + if [ -n "$SONG" ]; then + SONG="π§ $SONG " + fi + + xsetroot -name "$SONGπ$CHARGE% $LAYOUT $DATE" sleep 0.2 done