From a2769a93ed598d53dd7d719c4fcff0925e753423 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 28 May 2018 18:51:33 +1000 Subject: [PATCH] image: Fixed images in kitty on macOS. Closes #994 --- neofetch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neofetch b/neofetch index 3e76fa3e..05faa904 100755 --- a/neofetch +++ b/neofetch @@ -3636,6 +3636,9 @@ get_term_size() { term_width="${term_size[2]/t*}" fi + [[ "$image_backend" == "kitty" ]] && \ + IFS=x read -r term_width term_height < <(kitty icat --print-window-size) + # Get terminal width/height if \e[14t is unsupported. if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then if type -p xdotool >/dev/null 2>&1; then