mirror of
https://github.com/MorizzG/portage-conf.git
synced 2025-12-06 01:12:42 +00:00
added neofetch patch for kitty font detection
This commit is contained in:
parent
068412e57d
commit
2b5c1b5807
1 changed files with 22 additions and 0 deletions
|
|
@ -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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue