New beggining.
This commit is contained in:
commit
6964b2b200
33 changed files with 1281 additions and 0 deletions
11
kitty-img-previewer
Executable file
11
kitty-img-previewer
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ ! -z "$2" ] && w="$2" || w=$(($(tput cols) / 2 ))
|
||||
[ ! -z "$3" ] && h="$3" || h=$(($(tput lines) / 2 ))
|
||||
|
||||
[ ! -z "$4" ] && x="$4" || x=$(($(tput cols) / 2 + 2))
|
||||
[ ! -z "$5" ] && y="$5" || y="1"
|
||||
|
||||
kitty +icat --clear --silent --transfer-mode file
|
||||
kitty +icat --silent --transfer-mode file --align=left --place ${w}x${h}@${x}x${y} "$1"
|
||||
exit 1
|
Loading…
Add table
Add a link
Reference in a new issue