added neofetch patch for kitty font detection

This commit is contained in:
Moritz Gmeiner 2023-07-25 00:24:16 +02:00
commit 2b5c1b5807

View file

@ -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")