Fixed kitty icat command

This commit is contained in:
Tryggvi Kalman 2023-02-14 15:04:55 +00:00
parent a3267c0da9
commit 3398761f93

View File

@ -32,7 +32,7 @@ is_kitty() {
} }
kitty_clear() { 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() { fifo_open() {
@ -95,8 +95,8 @@ send_image() {
return 1 return 1
;; ;;
"$image_method_kitty") "$image_method_kitty")
kitty +kitten icat --transfer-mode file --align left \ kitty +kitten icat --silent --stdin no --transfer-mode file \
--place "${w}x${h}@${x}x${y}" "$1" & --place "${w}x${h}@${x}x${y}" "$1" < /dev/null > /dev/tty
printf '%d\n' "$!" > "$(kitty_icat_pid)" printf '%d\n' "$!" > "$(kitty_icat_pid)"
wait wait
return 1 return 1