aboutsummaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-01-29 18:44:08 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-01-29 18:44:08 +0100
commit3c6c62ad079454c8ca1c91e153ac48f8216c3694 (patch)
tree1da550aec302d6c8ca73e9f81fe263f86fe1e503 /img
parentda8c4b7b65235909b7c03da480689d9d871f8d59 (diff)
downloadscripts-3c6c62ad079454c8ca1c91e153ac48f8216c3694.tar.gz
scripts-3c6c62ad079454c8ca1c91e153ac48f8216c3694.zip
Created scripts for ueberzug and opening files as pdf.
Diffstat (limited to 'img')
-rwxr-xr-ximg8
1 files changed, 8 insertions, 0 deletions
diff --git a/img b/img
new file mode 100755
index 0000000..6fe6b38
--- /dev/null
+++ b/img
@@ -0,0 +1,8 @@
+#!/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
+)