mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Font: Added initial support for alacritty
This commit is contained in:
4
neofetch
4
neofetch
@@ -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:}"
|
||||||
|
|||||||
Reference in New Issue
Block a user