Commit da97fc8a authored by Dylan Araps's avatar Dylan Araps

term_font: cleanup xfce4-terminal

parent 4b684c0e
...@@ -3034,13 +3034,13 @@ END ...@@ -3034,13 +3034,13 @@ END
;; ;;
"xfce4-terminal") "xfce4-terminal")
term_font="$(awk -F '=' '/^FontName/ {a=$2} /^FontUseSystem=TRUE/ {a=$0} END{print a}' \ term_font="$(awk -F '=' '/^FontName/{a=$2}/^FontUseSystem=TRUE/{a=$0}END{print a}' \
"${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")" "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")"
if [[ "$term_font" == "FontUseSystem=TRUE" ]]; then [[ "$term_font" == "FontUseSystem=TRUE" ]] && \
term_font="$(gsettings get org.gnome.desktop.interface monospace-font-name)" term_font="$(gsettings get org.gnome.desktop.interface monospace-font-name)"
term_font="$(trim_quotes "$term_font")"
fi term_font="$(trim_quotes "$term_font")"
# Default fallback font hardcoded in terminal-preferences.c # Default fallback font hardcoded in terminal-preferences.c
[[ -z "$term_font" ]] && term_font="Monospace 12" [[ -z "$term_font" ]] && term_font="Monospace 12"
......
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