Unverified Commit 0d50468d authored by Matt Mathis's avatar Matt Mathis Committed by GitHub

Updated to fix new kitty bug prior to kitty fixes

Kitty recently updated and broke just using "kitty icat <image>" however, "kitty +kitten icat <image>" still works as intended. This commit makes the neofetch script use +kitten.
parent 9ba1bbaa
...@@ -3578,7 +3578,7 @@ get_window_size() { ...@@ -3578,7 +3578,7 @@ get_window_size() {
fi fi
[[ "$image_backend" == "kitty" ]] && \ [[ "$image_backend" == "kitty" ]] && \
IFS=x read -r term_width term_height < <(kitty icat --print-window-size) IFS=x read -r term_width term_height < <(kitty +kitten icat --print-window-size)
# Get terminal width/height if \e[14t is unsupported. # Get terminal width/height if \e[14t is unsupported.
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
...@@ -3757,7 +3757,7 @@ display_image() { ...@@ -3757,7 +3757,7 @@ display_image() {
;; ;;
"kitty") "kitty")
kitty icat \ kitty +kitten icat \
--align left \ --align left \
--place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \ --place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \
"$image" "$image"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment