From 9ab0f61524928134f856d4b2c39266d1f963e0b9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 8 Jan 2017 08:03:29 +1100 Subject: [PATCH] Font: Added initial support for alacritty --- neofetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neofetch b/neofetch index 8dea7c82..d0baf59e 100755 --- a/neofetch +++ b/neofetch @@ -1543,6 +1543,10 @@ get_term_font() { ((term_run != 1)) && get_term case "$term" in + "alacritty"*) + term_font="$(awk -F ':|#' '/family:/ {print $2}' "${XDG_CONFIG_HOME}/alacritty.yml")" + ;; + "urxvt" | "urxvtd" | "xterm") term_font="$(grep -i -F "${term/d}*font" < <(xrdb -query))" term_font="${term_font/*font:}"