From 6a393986ac538c792263bdd794a4ccda0229ac9f Mon Sep 17 00:00:00 2001 From: Christopher Patrick Fair Date: Thu, 19 May 2022 08:00:29 -0600 Subject: [PATCH 1/3] Removed an prepended '=' sign from terminal font output for kitty --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 48b96d21..101b1489 100755 --- a/neofetch +++ b/neofetch @@ -3442,7 +3442,7 @@ END "kitty"*) term_font="from kitty.cli import *; o = create_default_opts(); \ print(f'{o.font_family} {o.font_size}')" - term_font="$(kitty +runpy ''"$term_font"'')" + term_font="$(kitty +runpy ''"$term_font"''|sed 's/=//')" ;; "konsole" | "yakuake") From c779230f0bb2b279a1ff0b309cea83ae0aa32c06 Mon Sep 17 00:00:00 2001 From: Christopher Patrick Fair Date: Sat, 21 May 2022 07:23:22 -0600 Subject: [PATCH 2/3] Removed the single quotes in the font as well in kitty --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 101b1489..3f492c2b 100755 --- a/neofetch +++ b/neofetch @@ -3442,7 +3442,7 @@ END "kitty"*) term_font="from kitty.cli import *; o = create_default_opts(); \ print(f'{o.font_family} {o.font_size}')" - term_font="$(kitty +runpy ''"$term_font"''|sed 's/=//')" + term_font="$(kitty +runpy ''"$term_font"''|sed "s/=//"|sed "s/'//g")" ;; "konsole" | "yakuake") From 3f7b6aa3e2093c0c7d21a000499886d92d870403 Mon Sep 17 00:00:00 2001 From: Christopher Patrick Fair Date: Mon, 23 May 2022 15:48:44 -0600 Subject: [PATCH 3/3] Realized that you will not take pipes so did it this way instead --- neofetch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 3f492c2b..34564646 100755 --- a/neofetch +++ b/neofetch @@ -3442,7 +3442,9 @@ END "kitty"*) term_font="from kitty.cli import *; o = create_default_opts(); \ print(f'{o.font_family} {o.font_size}')" - term_font="$(kitty +runpy ''"$term_font"''|sed "s/=//"|sed "s/'//g")" + term_font="$(kitty +runpy ''"$term_font"'')" + term_font="${term_font//=}" + term_font="${term_font//\'}" ;; "konsole" | "yakuake")