mirror of https://github.com/mananapr/cfiles
parent
5ba2f4d6af
commit
ef77f6f359
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
kill -9 `ps aux | grep uberzug | grep -v grep | sort | awk '{print $2}'`
|
||||
|
||||
#function ImageLayer {
|
||||
# ueberzug layer -sp json
|
||||
#}
|
||||
#
|
||||
#function remove_image {
|
||||
# echo "{\"action\": \"remove\", \"identifier\": \"image\"}";
|
||||
#}
|
||||
#
|
||||
#ImageLayer -< <(
|
||||
# remove_image
|
||||
#)
|
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function ImageLayer {
|
||||
ueberzug layer -sp json 2> /dev/null
|
||||
}
|
||||
|
||||
# ~/ doesn't work
|
||||
path_to_image="$5"
|
||||
x="$1"
|
||||
y="$(($2-1))"
|
||||
maxx="$3"
|
||||
maxy="$(($4-2))"
|
||||
|
||||
function add_image {
|
||||
echo "{\"action\": \"add\", \"identifier\": \"image\", \"x\": $x, \"y\": $y, \"max_width\": $maxx, \"max_height\": $maxy, \"path\": \"$path_to_image\"}";
|
||||
}
|
||||
|
||||
ImageLayer -< <(
|
||||
add_image
|
||||
read
|
||||
)
|
Loading…
Reference in new issue