aboutsummaryrefslogtreecommitdiff
path: root/.scripts/img
diff options
context:
space:
mode:
authorMarvin Borner2019-03-05 01:09:01 +0100
committerMarvin Borner2019-03-05 01:09:01 +0100
commit55457187d18221e76bd12f0fb2cfab65c49b92fb (patch)
tree8db042d2d80710d54100c2709ad4332153ac848a /.scripts/img
Initial commit
Diffstat (limited to '.scripts/img')
-rwxr-xr-x.scripts/img8
1 files changed, 8 insertions, 0 deletions
diff --git a/.scripts/img b/.scripts/img
new file mode 100755
index 0000000..0cf8b0d
--- /dev/null
+++ b/.scripts/img
@@ -0,0 +1,8 @@
+#!/bin/bash
+#[ -z "$5" ] && echo "Usage: $0 <image> <x> <y> <z> <max height> <max width>" && exit
+source "`ueberzug library`"
+
+ImageLayer 0< <(
+ ImageLayer::add [identifier]="example0" [x]="0" [y]="0" [max_width]="30" [max_height]="30" [path]="$1"
+ read
+)