Merge pull request #609 from mstraube/termite

Term: Fix termite font detection, closes #608
This commit is contained in:
Dylan Araps 2017-01-10 12:48:33 +11:00 committed by GitHub
commit d3e969b7bb
1 changed files with 2 additions and 1 deletions

View File

@ -1603,7 +1603,8 @@ get_term_font() {
;;
"termite")
term_font="$(awk -F '= ' '/^font/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/termite/config")"
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && config_file="${XDG_CONFIG_HOME}/termite/config"
term_font="$(awk -F '= ' '/\[options\]/ {opt=1} /^font/ {if(opt==1) a=$2; opt=0} END{print a}' "/etc/xdg/termite/config" "$config_file")"
;;
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")