From 2b5c1b580756856b9ae6035a953df1076fd1aa3d Mon Sep 17 00:00:00 2001 From: Moritz Gmeiner Date: Tue, 25 Jul 2023 00:24:16 +0200 Subject: [PATCH] added neofetch patch for kitty font detection --- ...fetch-7.1.0-fix-kitty-font-detection.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 patches/app-misc/neofetch-7.1.0/neofetch-7.1.0-fix-kitty-font-detection.patch diff --git a/patches/app-misc/neofetch-7.1.0/neofetch-7.1.0-fix-kitty-font-detection.patch b/patches/app-misc/neofetch-7.1.0/neofetch-7.1.0-fix-kitty-font-detection.patch new file mode 100644 index 0000000..e052391 --- /dev/null +++ b/patches/app-misc/neofetch-7.1.0/neofetch-7.1.0-fix-kitty-font-detection.patch @@ -0,0 +1,22 @@ +diff --git a/neofetch b/neofetch +index 1e4b5646..ec209087 100755 +--- a/neofetch ++++ b/neofetch +@@ -3292,11 +3292,13 @@ END + ;; + + "kitty"*) +- kitty_config="$(kitty --debug-config)" +- [[ "$kitty_config" != *font_family* ]] && return ++ # kitty_config="$(kitty --debug-config)" ++ # [[ "$kitty_config" != *font_family* ]] && return ++ # ++ # term_font="$(awk '/^font_family|^font_size/ {$1="";gsub("^ *","",$0);print $0}' \ ++ # <<< "$kitty_config")" + +- term_font="$(awk '/^font_family|^font_size/ {$1="";gsub("^ *","",$0);print $0}' \ +- <<< "$kitty_config")" ++ term_font="$(kitty +runpy 'from kitty.cli import *; print(create_default_opts().font_family)')" + ;; + + "konsole" | "yakuake")