diff options
author | Joe <rrbo@proton.me> | 2023-01-13 16:43:10 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-01-13 16:43:10 +0100 |
commit | 8d7e3d384a0a720f85853e42cf90fcbccb5298fd (patch) | |
tree | 98b2c6c4efa96334e2b4b0ac5b702262018b2226 /.local | |
parent | up (diff) | |
download | dotfiles-bsd-8d7e3d384a0a720f85853e42cf90fcbccb5298fd.tar.gz dotfiles-bsd-8d7e3d384a0a720f85853e42cf90fcbccb5298fd.tar.bz2 dotfiles-bsd-8d7e3d384a0a720f85853e42cf90fcbccb5298fd.tar.xz dotfiles-bsd-8d7e3d384a0a720f85853e42cf90fcbccb5298fd.tar.zst dotfiles-bsd-8d7e3d384a0a720f85853e42cf90fcbccb5298fd.zip |
up
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/conky_cover.sh | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.local/bin/conky_cover.sh b/.local/bin/conky_cover.sh index 43bc65c..a0f3517 100755 --- a/.local/bin/conky_cover.sh +++ b/.local/bin/conky_cover.sh @@ -1,4 +1,4 @@ -#!/usr/local/bin/bash +#!/bin/sh # # cover.sh - Download cover from Last.fm and overlay with image # @@ -49,16 +49,17 @@ if [ ! -f "$COVER" ]; then fi # Copy cache for processing echo "Copying $COVER." >> $LOG -cp "$COVER" /tmp/cover.jpg +# cp "$COVER" /tmp/cover.jpg # Downscale to fit overlay -convert /tmp/cover.jpg -resize 366 /tmp/cover.png >> $LOG -# Enlarge canvas to fit overlay -convert /tmp/cover.png -background none -extent 500x455-84-44 /tmp/cover.png >> $LOG -# Overlay overlay over cover -convert /tmp/cover.png $HOME/.config/conky-mpd/case.png -composite /tmp/cover.png >> $LOG -# Resize for immediate use -convert /tmp/cover.png -resize 120 /tmp/conkyCover.png >> $LOG -# Set current artist +# convert /tmp/cover.jpg -resize 366 /tmp/cover.png >> $LOG +## Enlarge canvas to fit overlay +#convert /tmp/cover.png -background none -extent 500x455-84-44 /tmp/cover.png >> $LOG +## Overlay overlay over cover +#convert /tmp/cover.png $HOME/.config/conky-mpd/case.png -composite /tmp/cover.png >> $LOG +## Resize for immediate use +# convert /tmp/cover.png -resize 120 /tmp/conkyCover.png >> $LOG +convert "$COVER" -resize 100 /tmp/conkyCover.png >> $LOG +## Set current artist echo "$ARTIST+$ALBUM" > $TMP #rm /tmp/cover.jpg /tmp/cover.png |