Commit 6f423e39 authored by Sibren Vasse's avatar Sibren Vasse

Robuster kitty font parsing

parent 789cdcea
...@@ -2912,10 +2912,7 @@ END ...@@ -2912,10 +2912,7 @@ END
kitty_config="$(kitty --debug-config)" kitty_config="$(kitty --debug-config)"
[[ "$kitty_config" != *font_family* ]] && return [[ "$kitty_config" != *font_family* ]] && return
term_font_size="${kitty_config/*font_size}" term_font="$(awk '/^font_family|^font_size/ {printf $2 " "}' <<< "$kitty_config")"
term_font_size="${term_font_size/$'\n'*}"
term_font="${kitty_config/*font_family}"
term_font="${term_font/$'\n'*} $term_font_size"
;; ;;
"konsole" | "yakuake") "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