From e0da62dd56030d4ca2b4888a4e7e97b16fbb895f Mon Sep 17 00:00:00 2001 From: Soispha Date: Thu, 7 Mar 2024 15:49:48 +0100 Subject: feat(hm/conf/yambar/mpd): Add song progress and duration information --- hm/soispha/conf/yambar/scripts/mpd_song_name.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hm/soispha/conf/yambar/scripts/mpd_song_name.sh') diff --git a/hm/soispha/conf/yambar/scripts/mpd_song_name.sh b/hm/soispha/conf/yambar/scripts/mpd_song_name.sh index 1c8e4e8d..0f2e1917 100755 --- a/hm/soispha/conf/yambar/scripts/mpd_song_name.sh +++ b/hm/soispha/conf/yambar/scripts/mpd_song_name.sh @@ -9,7 +9,7 @@ while true; do if [ "$state" = "playing" ]; then song="$(mpc --format '[[%artist% - ]%title%]|[%file%]' current)" echo "playing|bool|true" - echo "song|string|$song" + echo "song|string|$song $(mpc status "%currenttime%/%totaltime%")" else echo "playing|bool|false" fi -- cgit 1.4.1