diff options
author | zachir <zachir@librem.one> | 2025-07-12 19:35:41 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-07-12 19:35:48 -0500 |
commit | a9a463e6ab782ab65d49e5aeeaffaffe697cbc9e (patch) | |
tree | 1298717e1d8bf8d6425d096e419377756d76bf8a /lf/image | |
parent | 0255f6d777a67de3f1f8e643cd6c7d95a12a72c9 (diff) |
Use icat kitten to draw lf images
Diffstat (limited to 'lf/image')
-rwxr-xr-x | lf/image | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -7,9 +7,10 @@ main() { > "$FIFO_UEBERZUG" ;; "draw") - declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" \ - [x]="$3" [y]="$4" [max_width]="$5" [max_height]="$6" \ - [path]="$2") > "$FIFO_UEBERZUG" + kitten icat --stdin no --transfer-mode memory --place"${5}x${6}@${3}x${4}" "$1" /dev/tty + #declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" \ + #[x]="$3" [y]="$4" [max_width]="$5" [max_height]="$6" \ + #[path]="$2") > "$FIFO_UEBERZUG" ;; "*") echo "Unknown command: '$1', '$2'" ;; esac |