Commit fd7136e5 authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #290 from aranega/master

Add terminal font detection support for terminology
parents ea312888 e2b14b26
...@@ -1814,6 +1814,12 @@ gettermfont () { ...@@ -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
} }
......
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