arch-rice/.local/bin/preview-image

11 lines
260 B
Plaintext
Raw Normal View History

2022-10-04 21:27:41 +00:00
#!/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
)