From 4ebb0ac1537449c2e678cf815217db81f4e2ec8b Mon Sep 17 00:00:00 2001 From: Michael Straube Date: Wed, 18 Jan 2017 17:40:27 +0100 Subject: [PATCH] Term Font: Add support for deepin-terminal --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 7761f0df..f0458dd1 100755 --- a/neofetch +++ b/neofetch @@ -1617,6 +1617,10 @@ get_term_font() { term_font="$(osascript -e 'tell application "Terminal" to font name of window frontmost')" ;; + "deepin-terminal"*) + term_font="$(awk -F '=' '/font=/ {a=$2} /font_size/ {b=$2} END{print a " " b}' "${XDG_CONFIG_HOME}/deepin/deepin-terminal/config.conf")" + ;; + "Hyper"*) term_font="$(awk -F "," '/fontFamily/ {a=$1} END{print a}' "${HOME}/.hyper.js" | awk -F "'" '{a=$2} END{print a}')" ;;