From 99438ec16b642060e536ef9f1e07066ebce643f2 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Sat, 15 Jul 2017 16:36:45 +0200 Subject: [PATCH] Term: Fix xfce4-terminal when using system-font --- neofetch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 17c6b429..895dbe43 100755 --- a/neofetch +++ b/neofetch @@ -1868,7 +1868,14 @@ get_term_font() { ;; "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 }