From b4789eba3a6c4be36b8a0a2b3b087b4defcc9513 Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Mon, 16 Jan 2017 16:47:43 +0100 Subject: [PATCH] Term Font: Add support for Pantheon Terminal --- neofetch | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/neofetch b/neofetch index 03858a50..2fd65338 100755 --- a/neofetch +++ b/neofetch @@ -1648,6 +1648,12 @@ get_term_font() { term_font="$(awk -F '=' '!/^($|#)/ && /Font/ {printf $2; exit}' "${HOME}/.minttyrc")" ;; + "pantheon"*) + term_font="$(gsettings get org.pantheon.terminal.settings font)" + [[ -z "${term_font//\'}" ]] && term_font="$(gsettings get org.gnome.desktop.interface monospace-font-name)" + term_font="$(trim_quotes "$term_font")" + ;; + "sakura"*) term_font="$(awk -F '=' '/^font=/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/sakura/sakura.conf")" ;;