Merge pull request #703 from MatthewCox/patch-1

Fix termite font matching
This commit is contained in:
Dylan Araps 2017-04-26 07:29:43 +10:00 committed by GitHub
commit 0b3fe3301f

View file

@ -1756,7 +1756,7 @@ get_term_font() {
"termite")
[[ -f "${XDG_CONFIG_HOME}/termite/config" ]] && termite_config="${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" "$termite_config")"
term_font="$(awk -F '= ' '/\[options\]/ {opt=1} /^\s*font/ {if(opt==1) a=$2; opt=0} END{print a}' "/etc/xdg/termite/config" "$termite_config")"
;;
"urxvt" | "urxvtd" | "rxvt-unicode" | "xterm")