about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-03-07 15:49:48 +0100
committerSoispha <soispha@vhack.eu>2024-03-07 15:49:48 +0100
commite0da62dd56030d4ca2b4888a4e7e97b16fbb895f (patch)
tree4205954a09ff2726d45e15eb5cec524b9113c3a0
parentfeat(pkgs/scripts/neorg/review): Only review opened projects (diff)
downloadnixos-config-e0da62dd56030d4ca2b4888a4e7e97b16fbb895f.tar.gz
nixos-config-e0da62dd56030d4ca2b4888a4e7e97b16fbb895f.zip
feat(hm/conf/yambar/mpd): Add song progress and duration information
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/conf/yambar/scripts/mpd_song_name.sh2
1 files changed, 1 insertions, 1 deletions
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