aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-31 00:40:32 +0300
committerawy <awy@awy.one>2025-07-31 00:40:32 +0300
commit55f823f367e30b80080c63de1253c6e29b51458d (patch)
treec8c67c4fbc5e8a37c1cadf645eacc542fc448ab2 /.local
parent5883ef3bed4ddabc9b89ce6a386090c242110af9 (diff)
downloadhyprdots-55f823f367e30b80080c63de1253c6e29b51458d.tar.gz
album cover waybar module
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/rmpcover6
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