From 6f423e3970183dcb86c64a7803ad97cb304538fe Mon Sep 17 00:00:00 2001 From: Sibren Vasse Date: Thu, 7 Feb 2019 23:48:09 +0100 Subject: [PATCH] Robuster kitty font parsing --- neofetch | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/neofetch b/neofetch index fe1cc368..27e320c7 100755 --- a/neofetch +++ b/neofetch @@ -2912,10 +2912,7 @@ END kitty_config="$(kitty --debug-config)" [[ "$kitty_config" != *font_family* ]] && return - term_font_size="${kitty_config/*font_size}" - term_font_size="${term_font_size/$'\n'*}" - term_font="${kitty_config/*font_family}" - term_font="${term_font/$'\n'*} $term_font_size" + term_font="$(awk '/^font_family|^font_size/ {printf $2 " "}' <<< "$kitty_config")" ;; "konsole" | "yakuake")