mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 20:20:41 +00:00
Add image previews to lf
This commit is contained in:
parent
7b44531968
commit
5d13b073ad
4 changed files with 148 additions and 1 deletions
11
home/.config/lf/draw_img.sh
Executable file
11
home/.config/lf/draw_img.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
readonly PREVIEW_ID="preview"
|
||||
|
||||
printf '{"action": "add", "identifier": "%s", "x": %d, "y": %d, "width": %d, "height": %d, "scaler": "contain", "scaling_position_x": 0.5, "scaling_position_y": 0.5, "path": "%s"}\n' \
|
||||
"$PREVIEW_ID" "$2" "$3" "$4" "$5" "$1" > "$FIFO_UEBERZUG"
|
||||
|
||||
#declare -p -A cmd=([action]=add [identifier]="$PREVIEW_ID" \
|
||||
# [x]="$2" [y]="$3" [max_width]="$4" [max_height]="$5" \
|
||||
# [path]="$1") > "$FIFO_UEBERZUG"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue