Font: Added initial support for alacritty

This commit is contained in:
Dylan Araps 2017-01-08 08:03:29 +11:00
parent e5153e054b
commit 9ab0f61524

View file

@ -1543,6 +1543,10 @@ get_term_font() {
((term_run != 1)) && get_term ((term_run != 1)) && get_term
case "$term" in case "$term" in
"alacritty"*)
term_font="$(awk -F ':|#' '/family:/ {print $2}' "${XDG_CONFIG_HOME}/alacritty.yml")"
;;
"urxvt" | "urxvtd" | "xterm") "urxvt" | "urxvtd" | "xterm")
term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))" term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))"
term_font="${term_font/*font:}" term_font="${term_font/*font:}"