mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
image: Fixed images in kitty on macOS. Closes #994
This commit is contained in:
3
neofetch
3
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
|
||||
|
Reference in New Issue
Block a user