diff options
author | awy <awy@tutamail.com> | 2024-07-31 19:26:35 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-07-31 19:26:35 +0300 |
commit | 0518efb332f5c9cf558cdd4619eab329f77b22b1 (patch) | |
tree | 1842928b903015da541c84b2e3083b38d7fb5ba1 /.config/waybar/scripts/album_art.sh |
clean
Diffstat (limited to '.config/waybar/scripts/album_art.sh')
-rwxr-xr-x | .config/waybar/scripts/album_art.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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" |