Term Font: Add support for Pantheon Terminal

This commit is contained in:
Michael Straube 2017-01-16 16:47:43 +01:00
parent 6666742550
commit b4789eba3a
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")"
;;