arch-rice/.local/bin/preview-image
2022-10-04 23:27:41 +02:00

11 lines
260 B
Bash
Executable File

#!/bin/bash
[ -z "$5" ] && echo "Usage: $0 <image> <x> <y> <max height> max width>" && exit
source "`ueberzug library`"
ImageLayer 0< <(
ImageLayer::add [identifier]="example0" [x]="$2" [y]="$3" [max_width]="$5" [max_height]="$4" [path]="$1"
read
)