From b731234be6f82dc52f4d44d2a67780f645e68568 Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 30 Mar 2016 09:41:43 +1100 Subject: [PATCH 1/2] Trying to find a fallback for iterm2 image rendering --- neofetch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 9e0df89f..0b3d2a75 100755 --- a/neofetch +++ b/neofetch @@ -317,7 +317,9 @@ thumbnail_dir="$HOME/.cache/thumbnails/neofetch" image_backend="w3m" # W3m-img path -# Some systems have this in another location +# This is automatically detected, this variable +# should only be set to w3m-img's location if the +# builtin detection doesn't work. w3m_img_path="/usr/lib/w3m/w3mimgdisplay" # Image position @@ -2836,7 +2838,7 @@ if [ "$image" != "off" ] && [ "$image" != "ascii" ]; then ;; "iterm2") - printf "%b%s\a\n" "\033]1337;File=width=${image_size}px;height=${image_size}px;inline=1:$(base64 < "$img")" + printf "%b%s\a\n" "\033]1337;File=width=${image_size}px;height=${image_size}px;inline=1:$(base64 < "$img" || padding="\033[0C")" ;; esac fi From e55680a0104b01d2fd1e56754c5777ccfd0984ec Mon Sep 17 00:00:00 2001 From: Dylan Date: Wed, 30 Mar 2016 09:57:27 +1100 Subject: [PATCH 2/2] Remove broken fallback --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 0b3d2a75..3dce247c 100755 --- a/neofetch +++ b/neofetch @@ -2838,7 +2838,7 @@ if [ "$image" != "off" ] && [ "$image" != "ascii" ]; then ;; "iterm2") - printf "%b%s\a\n" "\033]1337;File=width=${image_size}px;height=${image_size}px;inline=1:$(base64 < "$img" || padding="\033[0C")" + printf "%b%s\a\n" "\033]1337;File=width=${image_size}px;height=${image_size}px;inline=1:$(base64 < "$img")" ;; esac fi