From 0518efb332f5c9cf558cdd4619eab329f77b22b1 Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 31 Jul 2024 19:26:35 +0300 Subject: clean --- .config/waybar/scripts/album_art.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .config/waybar/scripts/album_art.sh (limited to '.config/waybar/scripts/album_art.sh') diff --git a/.config/waybar/scripts/album_art.sh b/.config/waybar/scripts/album_art.sh new file mode 100755 index 0000000..5a8cdab --- /dev/null +++ b/.config/waybar/scripts/album_art.sh @@ -0,0 +1,9 @@ +#!/bin/sh +album_art=$(playerctl -p spotify_player metadata mpris:artUrl) +if [[ -z $album_art ]] +then + # spotify is dead, we should die too. + exit +fi +curl -s "${album_art}" --output "/tmp/cover.jpeg" +echo "/tmp/cover.jpeg" -- cgit v1.2.3