dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
22.18k stars 1.66k forks source link

Terminal font not displayed #2012

Open blankaex opened 2 years ago

blankaex commented 2 years ago

Description

Terminal font is not being displayed. Similar to #1503.

Did some brief testing and this snippet appears to be reading the wrong section of the (correctly identified) config file:

$ cat test.sh
shopt -s nullglob
confs=({$XDG_CONFIG_HOME,$HOME}/{alacritty,}/{.,}alacritty.ym?)
shopt -u nullglob

[[ -f "${confs[0]}" ]] || return

term_font="$(awk -F ':|#' '/normal:/ {getline; print}' "${confs[0]}")"
# term_font="${term_font/*family:}"
# term_font="${term_font/$'\n'*}"
# term_font="${term_font/\#*}"
echo $term_font

$ bash test.sh
# Font family black: '#131313'

$ grep normal: -A8 alacritty.yml
  normal:
    # Font family
    #
    # Default:
    #   - (macOS) Menlo
    #   - (Linux) monospace
    #   - (Windows) Consolas
    family: Source Han Code JP

--
  normal:
    black: '#131313'
    red: '#6b4949'
    green: '#b35959'
    yellow: '#996551'
    blue: '#774646'
    magenta: '#8f505a'
    cyan: '#4f3232'
    white: '#c7c7c7'

Neofetch version

[!] Neofetch version: 7.1.0

Screenshot

screenshot

Config file

Neofetch: https://0x0.st/oraI.conf Alacritty: https://0x0.st/oral.yml

Verbose log

https://0x0.st/oraU.txt

real-F-00 commented 2 years ago

same here, i am using alacritty as well.

ghost commented 2 years ago

Happens with urxvt as well

ribru17 commented 1 year ago

Happening on Wezterm for me also

Miguel-hrvs commented 8 months ago

Use fastfetch