This commit is contained in:
ziro 2022-03-13 16:57:38 +07:00
parent 12377b185f
commit d9834ae4ec
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
6 changed files with 48 additions and 75 deletions

6
.config/lf/scripts/image Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
if [ -n "$FIFO_UEBERZUG" ]; then
path="$(printf '%s' "$1" | sed 's/\\/\\\\/g;s/"/\\"/g')"
printf '{"action": "add", "identifier": "preview", "x": %d, "y": %d, "width": %d, "height": %d, "scaler": "contain", "scaling_position_x": 0.5, "scaling_position_y": 0.5, "path": "%s"}\n' \
"$4" "$5" "$2" "$3" "$1" >"$FIFO_UEBERZUG"
fi