From 3398761f937b4e0833d6b13908cf0612150a8dbe Mon Sep 17 00:00:00 2001 From: Tryggvi Kalman Date: Tue, 14 Feb 2023 15:04:55 +0000 Subject: [PATCH] Fixed kitty icat command --- sh/helpers.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sh/helpers.sh b/sh/helpers.sh index 012d1e9..6948b89 100644 --- a/sh/helpers.sh +++ b/sh/helpers.sh @@ -32,7 +32,7 @@ is_kitty() { } kitty_clear() { - kitty +kitten icat --clear --transfer-mode file + kitty +kitten icat --clear --stdin no --silent --transfer-mode file < /dev/null > /dev/tty } fifo_open() { @@ -95,8 +95,8 @@ send_image() { return 1 ;; "$image_method_kitty") - kitty +kitten icat --transfer-mode file --align left \ - --place "${w}x${h}@${x}x${y}" "$1" & + kitty +kitten icat --silent --stdin no --transfer-mode file \ + --place "${w}x${h}@${x}x${y}" "$1" < /dev/null > /dev/tty printf '%d\n' "$!" > "$(kitty_icat_pid)" wait return 1