mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
Merge pull request #290 from aranega/master
Add terminal font detection support for terminology
This commit is contained in:
6
neofetch
6
neofetch
@@ -1814,6 +1814,12 @@ gettermfont () {
|
||||
"Apple_Terminal")
|
||||
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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user