diff options
author | awy <awy@awy.one> | 2025-08-07 04:38:05 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-07 04:38:05 +0300 |
commit | 82307a7d73dc2683062e1029b98bf976fb50ee26 (patch) | |
tree | d3881c27a086f4210ebd3d463391ae21b27af4ad /.local/bin/rmpcover | |
parent | 500d06abcd465c606c9503fc883a63f3a48028f7 (diff) | |
download | hyprdots-82307a7d73dc2683062e1029b98bf976fb50ee26.tar.gz |
music module update
Diffstat (limited to '.local/bin/rmpcover')
-rwxr-xr-x | .local/bin/rmpcover | 5 |
1 files changed, 5 insertions, 0 deletions
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) |