From 82307a7d73dc2683062e1029b98bf976fb50ee26 Mon Sep 17 00:00:00 2001 From: awy Date: Thu, 7 Aug 2025 04:38:05 +0300 Subject: music module update --- .local/bin/rmpcover | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.local/bin/rmpcover') diff --git a/.local/bin/rmpcover b/.local/bin/rmpcover index 5ce77c4..0a312f6 100755 --- a/.local/bin/rmpcover +++ b/.local/bin/rmpcover @@ -1,5 +1,10 @@ #!/bin/sh +ifrunning=$(mpc status | rg -o '\[\w+\] (.*)' | awk '{print $2}') +if [ -z "$ifrunning" ]; then + echo "" +fi + prefix="/mnt/ssd/music" albumdir=$(rmpc song | jq -r '.file' | sed 's#/[^/]*$##') final=$(fd . -e jpg -e png -t f "$prefix/$albumdir/" | head -n 1) -- cgit v1.2.3