diff options
author | Marvin Borner | 2019-03-05 01:09:01 +0100 |
---|---|---|
committer | Marvin Borner | 2019-03-05 01:09:01 +0100 |
commit | 55457187d18221e76bd12f0fb2cfab65c49b92fb (patch) | |
tree | 8db042d2d80710d54100c2709ad4332153ac848a /.scripts |
Initial commit
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/img | 8 | ||||
-rwxr-xr-x | .scripts/n | 8 |
2 files changed, 16 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 +) diff --git a/.scripts/n b/.scripts/n new file mode 100755 index 0000000..9f61763 --- /dev/null +++ b/.scripts/n @@ -0,0 +1,8 @@ +#!/bin/sh + +nnn "$@" + +if [ -f $NNN_TMPFILE ]; then + . $NNN_TMPFILE + rm $NNN_TMPFILE +fi |