dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 56572e8960863ea31e233c8184cc8fa3afb92bd6
parent 98a884ff433dbf62b99f50ec4386116665b21a13
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat,  2 Jan 2021 19:53:50 +0100

img-to-background: print where image was saved

Diffstat:
Mscripts/img-to-background | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/img-to-background b/scripts/img-to-background @@ -15,4 +15,6 @@ die() { [ $# -eq 1 ] || die "Filename argument needed." [ -e "$1" ] || die "$1 does not exist." [ -f "$1" ] || die "$1 is not a file." -convert "$1" -resize "$aspect_ratio" "${1/#/siz-}" +newname="${1/#/siz-}" +convert "$1" -resize "$aspect_ratio" "$newname" +printf "Resized image written to %s\n" "$newname"