dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

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:
Mscripts/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