Unverified Commit cc39539c authored by Kid's avatar Kid Committed by GitHub

Better kitty terminal font detection (#1795)

* Better kitty terminal font detection * Fix indent
parent 8fc31ac0
......@@ -3428,11 +3428,9 @@ END
;;
"kitty"*)
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="from kitty.cli import *; o = create_default_opts(); \
print(f'{o.font_family} {o.font_size}')"
term_font="$(kitty +runpy ''"$term_font"'')"
;;
"konsole" | "yakuake")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment