Merge pull request #290 from aranega/master

Add terminal font detection support for terminology
This commit is contained in:
Dylan Araps 2016-06-17 00:25:56 +10:00 committed by GitHub
commit fd7136e57a
1 changed files with 6 additions and 0 deletions

View File

@ -1814,6 +1814,12 @@ gettermfont () {
"Apple_Terminal") "Apple_Terminal")
termfont="$(osascript -e 'tell application "Terminal" to font name of window frontmost')" termfont="$(osascript -e 'tell application "Terminal" to font name of window frontmost')"
;; ;;
"terminology")
termfont="$(strings ${XDG_CONFIG_HOME}/terminology/config/standard/base.cfg | awk '/^font\.name$/{print a}{a=$0}')"
termfont="${termfont/.pcf}"
termfont="${termfont/:*}"
;;
esac esac
} }