diff options
author | awy <awy@awy.one> | 2025-07-31 00:40:32 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-07-31 00:40:32 +0300 |
commit | 55f823f367e30b80080c63de1253c6e29b51458d (patch) | |
tree | c8c67c4fbc5e8a37c1cadf645eacc542fc448ab2 /.local | |
parent | 5883ef3bed4ddabc9b89ce6a386090c242110af9 (diff) | |
download | hyprdots-55f823f367e30b80080c63de1253c6e29b51458d.tar.gz |
album cover waybar module
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/rmpcover | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/rmpcover b/.local/bin/rmpcover new file mode 100755 index 0000000..f737dd1 --- /dev/null +++ b/.local/bin/rmpcover @@ -0,0 +1,6 @@ +#!/bin/sh + +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) +echo $final |