Merge pull request #619 from mstraube/pantheon

Term Font: Add support for Pantheon Terminal
This commit is contained in:
Dylan Araps 2017-01-18 09:40:51 +11:00 committed by GitHub
commit f311e98e6f
1 changed files with 6 additions and 0 deletions

View File

@ -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")"
;;