update hyprland and add screencopy permissions

This commit is contained in:
2025-04-09 17:38:13 +03:00
parent a40aef94bc
commit c14e4d7d46
13 changed files with 201 additions and 82 deletions

View File

@@ -25,7 +25,7 @@ get_source_info() {
elif [[ "$trackid" == *"chromium"* ]]; then
echo -e "Chrome "
elif [[ "$trackid" == *"cider"* ]]; then
echo -e "Apple Music " # added
echo -e "Apple Music " # added
else
echo ""
fi
@@ -50,7 +50,7 @@ case "$1" in
url=${url#file://}
elif [[ "$url" == http* ]]; then
url="${url/640x640/1024x1024}"
hash=$(echo -n "$url" | sha256sum | awk '{print $1}')
hash=$(echo -n "$(playerctl metadata album)" | sha256sum | awk '{print $1}')
file_path="/tmp/${hash}.jpg"
if [[ ! -f "$file_path" ]]; then
curl -s --compressed --connect-timeout 2 -m 5 -o "$file_path" "$url" &