From 7e4ec9f09d2f47690093e14cf00d9fe7cdc2d61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Birger=20J=2E=20Nord=C3=B8lum?= Date: Fri, 11 May 2018 19:41:46 +0200 Subject: [PATCH] kitty: This got to be the last fix... --- neofetch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index ea4384b0..24267edf 100755 --- a/neofetch +++ b/neofetch @@ -2910,10 +2910,11 @@ END fi - term_font="$(awk '/^[\S\n_#]+?font_family\s+?/ - { $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 } - /^[\S\n_#]+?font_size\s+?\d+?/ - { size = $2 } END { print font " " size}' \ + term_font="$(awk '/^([[:space:]]*|[^#_])font_family[[:space:]]+/ \ + { $1 = ""; gsub(/^[[:space:]]/, ""); font = $0 } \ + /^([[:space:]]*|[^#_])font_size[[:space:]]+/ \ + { size = $2 } \ + END { print font " " size}' \ "${kitty_file}")" ;;