feat(hyprlock): update

This commit is contained in:
2026-02-25 01:35:25 +01:00
parent 566513de78
commit 74dda82f24
10 changed files with 115 additions and 24 deletions

15
hypr/scripts/cover.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
CACHE="$HOME/.cache/nowplaying-cover.jpg"
url=$(playerctl metadata mpris:artUrl 2>/dev/null)
# Kein Player aktiv
[ -z "$url" ] && exit 0
# file:// prefix entfernen (Spotify lokal)
if [[ "$url" == file://* ]]; then
cp "${url#file://}" "$CACHE"
else
curl -sL "$url" -o "$CACHE"
fi