updated hyprlock

This commit is contained in:
2026-04-02 13:46:16 +02:00
parent eadaaa5d52
commit 74945d45e9
4 changed files with 140 additions and 47 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
url=$(playerctl metadata mpris:artUrl 2>/dev/null)
if [[ "$url" == file://* ]]; then
cp "${url#file://}" /tmp/hyprlock_art.png
echo "/tmp/hyprlock_art.png"
elif [[ "$url" == http* ]]; then
curl -s "$url" -o /tmp/hyprlock_art.png
echo "/tmp/hyprlock_art.png"
else
echo "$HOME/.config/hypr/catppuccin-hyprland/assets/mocha.webp"
fi