mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 08:41:39 +00:00
Better kitty terminal font detection (#1795)
* Better kitty terminal font detection * Fix indent
This commit is contained in:
8
neofetch
8
neofetch
@@ -3428,11 +3428,9 @@ END
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"kitty"*)
|
"kitty"*)
|
||||||
kitty_config="$(kitty --debug-config)"
|
term_font="from kitty.cli import *; o = create_default_opts(); \
|
||||||
[[ "$kitty_config" != *font_family* ]] && return
|
print(f'{o.font_family} {o.font_size}')"
|
||||||
|
term_font="$(kitty +runpy ''"$term_font"'')"
|
||||||
term_font="$(awk '/^font_family|^font_size/ {$1="";gsub("^ *","",$0);print $0}' \
|
|
||||||
<<< "$kitty_config")"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"konsole" | "yakuake")
|
"konsole" | "yakuake")
|
||||||
|
Reference in New Issue
Block a user