dotfiles

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

commit ce49929f6511521a98c26cf4a337d3dba624117a
parent aae842d4d8fb25f2a047d8beca4a5a0a3729c2b1
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat, 10 Feb 2024 15:33:04 +0100

imgpreview: use chafa for svg

Diffstat:
Mscripts/imgpreview | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/imgpreview b/scripts/imgpreview @@ -14,7 +14,13 @@ case "$os" in fi ;; darwin*) - catimg -H "$HEIGHT" "$1" + case "$1" in + *.svg) + chafa --fill=block --symbols=block -c 256 -s 80x"$HEIGHT" "$1";; + *) + catimg -H "$HEIGHT" "$1" + ;; + esac ;; msys*|cygwin*|mingw*|nt|win*) printf "Windows not supported.\n"