Commit 99438ec1 authored by Michael Straube's avatar Michael Straube

Term: Fix xfce4-terminal when using system-font

parent 70b7816b
...@@ -1868,7 +1868,14 @@ get_term_font() { ...@@ -1868,7 +1868,14 @@ get_term_font() {
;; ;;
"xfce4-terminal") "xfce4-terminal")
term_font="$(awk -F '=' '/^FontName/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")" term_font="$(awk -F '=' '/^FontName/ {a=$2} /^FontUseSystem=TRUE/ {a=$0} END{print a}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")"
if [[ "$term_font" == "FontUseSystem=TRUE" ]]; then
term_font="$(gsettings get org.gnome.desktop.interface monospace-font-name)"
term_font="$(trim_quotes "$term_font")"
fi
# TODO: Figure out how to get the fallback font when not using system-font
# and no font is set in the config file.
;; ;;
esac esac
} }
......
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