lf stuff
This commit is contained in:
parent
12377b185f
commit
d9834ae4ec
6 changed files with 48 additions and 75 deletions
6
.config/lf/scripts/image
Executable file
6
.config/lf/scripts/image
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue