Commit 9ab0f615 authored by Dylan Araps's avatar Dylan Araps

Font: Added initial support for alacritty

parent e5153e05
...@@ -1543,6 +1543,10 @@ get_term_font() { ...@@ -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:}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment