term_font: cleanup xfce4-terminal
This commit is contained in:
parent
4b684c0eb6
commit
da97fc8a64
1 changed files with 4 additions and 4 deletions
4
neofetch
4
neofetch
|
@ -3037,10 +3037,10 @@ END
|
||||||
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")"
|
term_font="$(trim_quotes "$term_font")"
|
||||||
fi
|
|
||||||
|
|
||||||
# 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"
|
||||||
|
|
Loading…
Reference in a new issue