X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/b0a71baeb5eeb8101a620b3558008038d487b3f7..25af54505b724080278de5a6d3a34931d3537609:/scripts/mpdcover?ds=inline diff --git a/scripts/mpdcover b/scripts/mpdcover index 20525fd..a611666 100755 --- a/scripts/mpdcover +++ b/scripts/mpdcover @@ -1,8 +1,8 @@ -!/bin/bash +#!/bin/bash # # A simple cover fetcher script for current playing song on mpd. # -# Author : Wolfgang Mueller +# Original author: Wolfgang Mueller # # Adapted for Lain internal use. # https://github.com/copycat-killer/lain @@ -37,9 +37,6 @@ fi # The default cover to use (optional) DEFAULT_ART=$4 -# Thumbnail background (transparent) -COVER_BACKGROUND="none" - #-------------------------------------------------------------------- # check if anything is playing at all @@ -58,7 +55,7 @@ cover="${cover:=$DEFAULT_ART}" # check if art is available if [[ -n $cover ]]; then if [[ -n $COVER_RESIZE ]]; then - convert "$cover" -thumbnail $COVER_RESIZE -gravity center -background "$COVER_BACKGROUND" -extent $COVER_RESIZE "$TEMP_PATH" + convert "$cover" -scale $COVER_RESIZE "$TEMP_PATH" cover="$TEMP_PATH" fi else