fastfetch-cli / fastfetch

An actively maintained, feature-rich and performance oriented, neofetch like system information tool.
MIT License
9.36k stars 383 forks source link

"terminal font: "section not appearing for st (suckless terminal) but it's appearing for alacritty #900

Closed nitrogenxx closed 4 months ago

nitrogenxx commented 4 months ago

on st (suckless terminal) neofetch is showing terminal font section but fastfetch is not showing terminal font sections butttt...🍑👋 on alacritty terminal fastfetch is showing terminal font section but neofetch is not showing terminal font section there (vice versa)

btw on xfce4-terminal both neofetch fastfetch both are showing terminal font section

I'm looking fastfetch solution for st terminal

why some terminal show some section but some don't

General description of bug:

Often helpful information:

Screenshot: image

also neofetch not showing font section | fastfatch not showing terminal font section

The content of the configuration file you use (if any): default

Output of fastfetch -c ci.jsonc --format json:

 {
    "type": "TerminalFont",
    "result": {
      "font": {
        "name": "Iosevka Nerd Font",
        "size": "14",
        "styles": [],
        "pretty": "Iosevka Nerd Font (14pt)"
      },
      "fallback": {
        "name": "",
        "size": "",
        "styles": [],
        "pretty": ""
      }
    },
    "stat": 0
  },

Output of fastfetch --list-features:

threads
vulkan
wayland
xcb-randr
xcb
xrandr
x11
drm
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
egl
glx
osmesa
opencl
libpulse
libnm
libddcutil
Directx Headers
Proprietary GPU driver API
System yyjson
linux/videodev2
linux/wireless

If fastfatch crashed or freezed

nope

If fastfetch is slow

nope

If fastfetch behaves incorrectly on shell starting

nope, using default bash

CarterLi commented 4 months ago

If it's detected with -c ci.jsonc --format json, it should also be detected with the default config.

  1. What does fastfetch --show-errors print?
  2. What does fastfetch --list-config-paths print?
  3. What is the command line you use to start st?
CarterLi commented 4 months ago

Font section prints the global system font setting, not terminal font.

nitrogenxx commented 4 months ago
  1. What does fastfetch --show-errors print? image

Terminal Font: st was not executed with -f parameter why fastfetch is asking for terminal font explicitly like st -f "Iosevka Nerd Font:pixelsize=19" when terminal font is already configured in st terminal config and working perfectly through out the terminal expect fastfetch it should detect terminal font automatically

2. What does fastfetch --list-config-paths print?


/home/user/.config/fastfetch/
/home/user/fastfetch/
/etc/xdg/fastfetch/
/etc/fastfetch/

> 3\. What is the command line you use to start st?

command: "st" (without quote)

### for you to try out debugging ----------------------------------------------------------------------------------------------
**1. install st terminal**
`git clone https://git.suckless.org/st`
`cd st`

sudo make sudo make install sudo make clean

**2. start st terminal**
use the command "st"

**3. to modify terminal font**
go to       `st/confg.h`   ~`st/config.def.h`~ first line is the font config

sudo make sudo make install sudo make clean


I'm really glad to seek help from you 🍁
CarterLi commented 4 months ago

I checked the implementation in neofetch

https://github.com/dylanaraps/neofetch/blob/master/neofetch#L3563-L3568

It should not work since neofetch was searching for lower cased font while you specified Font. I wonder how you get the correct result.

Anyway, I have implemented the similar logic which searches for size=. Please test the latest dev build