fastfetch-cli / fastfetch

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

Info displayed in fastfetch is not in configuration files #158

Closed c02y closed 2 years ago

c02y commented 2 years ago

Output of fastfetch --version:

fastfetch 1.3.4

Output of fastfetch --load-config devinfo:

                  -`                     chz@archlinux
                 .o+`                    -------------
                `ooo/                    OS: Arch Linux [x86_64]
               `+oooo:                   Host: 82BD Lenovo Legion Y9000X 2021
              `+oooooo:                  Kernel: 5.17.5-zen1-1-zen
              -+oooooo+:                 Uptime: 7 days, 4 hours, 47 mins
            `/:-:++oooo+:                Packages: 1133 (pacman)
           `/++++/+++++++:               Shell: fish 3.4.1
          `/++++++++++++++:              Resolution: 2560x1440 @ 60Hz
         `/+++ooooooooooooo/`            DE: No DE found
        ./ooosssso++osssssso+`           WM: i3 (X11)
       .oossssso-````/ossssss+`          WM Theme: Unknown WM: i3
      -osssssso.      :ssssssso.         Theme: Adwaita-dark [GTK2], Matcha-dark-azul [GTK3/4]
     :osssssss/        osssso+++.        Icons: ePapirus-Dark [GTK2], Papirus-Dark [GTK3/4]
    /ossssssss/        +ssssooo/-        Font: Noto Sans (12pt) [GTK2], Noto Sans (11pt) [GTK3/4]
  `/ossssso+/:-        -:/+osssso+-      Cursor: Vimix-white
 `+sso+:-`                 `.-/+oso:     Terminal: alacritty
`++:.                           `-/+/    Terminal Font: Unknown terminal: alacritty
.`                                 `/    CPU: Intel Core i7-10875H (16) @ 5.1GHz
                                         GPU: Nvidia GeForce RTX 2060 Max-Q
                                         Memory: 6030MiB / 15738MiB (38%)
                                         Disk (/): 690GB / 937GB (73%)
                                         Battery: 100%
                                         Locale: en_US.UTF-8

                                         ████████████████████████
                                         ████████████████████████

Output of fastfetch --load-config devinfo-verbose:

                  -`                     chz@archlinux
                 .o+`                    -------------
                `ooo/                    OS: System: Linux; Name: Arch Linux; Pretty name: Arch Linux; ID: arch; ID like: ; Variant: ; Variant ID: ; Version: ; Version ID: ; Version codename: ; Build ID: rolling; Architecture: x86_64o:
              `+oooooo:                  Host: Family: Legion Y9000X 2021; Name: 82BD; Version: Lenovo Legion Y9000X 2021
              -+oooooo+:                 Kernel: Sysname: Linux; Release: 5.17.5-zen1-1-zen; Version: #1 ZEN SMP PREEMPT Wed, 27 Apr 2022 20:56:14 +0000
            `/:-:++oooo+:                Uptime: Days: 7; Hours: 4; Minutes: 48; Seconds: 14
           `/++++/+++++++:               Processes: Count: 1202
          `/++++++++++++++:              Packages: All: 1133; pacman: 1133; pacman branch: ; dpkg: 0; rpm: 0; emerge: 0; xbps: 0; flatpak: 0; snap: 0
         `/+++ooooooooooooo/`            Shell: Process name: fish; Process path: fish; Process exe: fish; Process version: 3.4.1; User path: /bin/bash; User exe: bash; User version: 5.1.16
        ./ooosssso++osssssso+`           Resolution: Width: 2560; Height: 1440; Refresh rate: 60
       .oossssso-````/ossssss+`          DE: Process name: ; Pretty name: ; Version:
      -osssssso.      :ssssssso.         WM: Process name: i3; Pretty name: i3; Protocol: X11
     :osssssss/        osssso+++.        WM Theme: Name:
    /ossssssss/        +ssssooo/-        Theme: Plasma: ; Plasma colors: ; Plasma colors pretty: ; GTK2: Adwaita-dark; GTK3: Matcha-dark-azul; GTK4: Matcha-dark-azul; GTK: Adwaita-dark [GTK2], Matcha-dark-azul [GTK3/4]ssssso+/:-        -:/+osssso+-
 `+sso+:-`                 `.-/+oso:     Icons: Plasma: ; GTK2: ePapirus-Dark; GTK3: Papirus-Dark; GTK4: Papirus-Dark; GTK: ePapirus-Dark [GTK2], Papirus-Dark [GTK3/4]
`++:.                           `-/+/    Font: Plasma raw: ; Plasma name: ; Plasma size: ; Plasma styles: ; Plasma pretty: ; GTK2 raw: Noto Sans 12; GTK2 name: Noto Sans; GTK2 size: 12; GTK2 styles: ; GTK2 pretty: Noto Sans (12pt); GTK3 raw: Noto Sans 11; GTK3 name: Noto Sans; GTK3 size: 11; GTK3 styles: ; GTK3 pretty: Noto Sans (11pt); GTK4 raw: Noto Sans 11; GTK4 name: Noto Sans; GTK4 size: 11; GTK4 styles: ; GTK4 pretty: Noto Sans (11pt); GTK: Noto Sans (12pt) [GTK2], Noto Sans (11pt) [GTK3/4]
                                         Cursor: Theme: Vimix-white; Size:
                                         Terminal: Process: alacritty; Path: alacritty; Exe: alacritty
                                         Terminal Font: Raw: ; Name: ; Size: ; Styles: ; Pretty:
                                         CPU: Name: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz; Pretty: Intel Core i7-10875H; Vendor: GenuineIntel; Logical online: 16; Logical configured: 16; Physical: 8; Cores: 16; bios: 0; scaling max: 5.1; scaling min: 0.8; info max: 5.1; info min: 0.8; cpuinfo: 2.3; frequency: 5.1
                                         GPU: Vendor: NVIDIA Corporation; Vendor pretty: Nvidia; Name: TU106M [GeForce RTX 2060 Max-Q]; Name pretty: GeForce RTX 2060 Max-Q; Driver: nvidia
                                         Memory: Used: 6035; Total: 15738; Percentage: 38
                                         Disk (/): Used: 690; Total: 937; Files: 1489395; Percentage: 73
                                         Battery: Manufactor: SMP; Model: L19M4PC3; Technology: Li-poly; Capacaty: 100; Status: Unknown
                                         Media Player: Name: Audacious
                                         Song: Song: Cavendish In Distress; Artist: Cavendish In Distress; Album: Johnny Klimek, Reinhold Heil, Tom Tykwer
                                         Public IP: 84.17.56.69
                                         Local IP (wlan0): 192.168.1.121
                                         Date & Time: year: 2022; yearShort: 22; month: 5; monthPretty: 05; monthName: May; monthNameShort: May; weekNumber: 19; weekday: Thursday; weekdayShort: Thu; dayInYear: 132; dayInMonth: 12; dayInWeek: 4; hour: 11; hourPretty: 11; hour12: 11; hour12Pretty: 11; minute: 2; minutePretty: 02; second: 40; secondPretty: 40
                                         Locale: en_US.UTF-8

                                         ████████████████████████
                                         ████████████████████████

Output of fastfetch --list-features:

libpci
vulkan
wayland
xcb-randr
xcb
xrandr
x11
gio
dconf
dbus
imagemagick7
zlib
xfconf

If you get the following error: Error: couldn't find config: [...], copy the files in presets to /usr/share/fastfetch/presets/ or ~/.local/share/fastfetch/presets/. If this isn't possible (or to much work) for you, post the output of fastfetch --show-errors --recache --multithreading false --disable-linewrap false.

Often helpful questions:

Context

As you can see from the above result:

From fastfetch:

Theme: Adwaita-dark [GTK2], Matcha-dark-azul [GTK3/4]
Icons: ePapirus-Dark [GTK2], Papirus-Dark [GTK3/4]
Font: Noto Sans (12pt) [GTK2], Noto Sans (11pt) [GTK3/4]

From neofetch:

Theme: Adwaita-dark [GTK2/3]
Icons: ePapirus-Dark [GTK2/3]
Font: Noto Sans 12 [GTK2/3]

From screenfetch:

GTK Theme: Adwaita-dark [GTK2/3]
Icon Theme: ePapirus-Dark
Font: Noto Sans 12

From ~/.gtkrc-2.0

gtk-theme-name="Adwaita-dark"
gtk-icon-theme-name="ePapirus-Dark"
gtk-font-name="Noto Sans 12"

From ~/.config/gtk-3.0/settings.ini

gtk-theme-name=Adwaita-dark
gtk-icon-theme-name=ePapirus-Dark
gtk-font-name=Noto Sans 12

I'm using lxappearance-gtk3 to set the theme/icon/font (the values are the same as ~/.gtkrc-2.0 and ~/.config/gtk-3.0/settings.ini) , all the other configurations are the same except fastfetch, I don't know how fastfetch gets a different result for gtk2 and gtk3/gtk4 and I can not find it.

BTW: Matcha-dark-azul is from package called matcha-gtk-theme, it is not even installed.

LinusDierheimer commented 2 years ago

fastfetch prefers GTK settings from dconf / gsettings, since GTK 3/4 seems to do that to, as far as i digged into the source code.

To see what is stored in gsettings, run gsettings get org.gnome.desktop.interface gtk-theme. To see what is stored in dconf, run dconf read /org/gnome/desktop/interface/gtk-theme

Maybe something is misconfigured there for you?

Another option is that gtk is configured to prefer config files on lxde, so lxappearance just needs to set them. GTK has custom settings for cinnamon and mate at least. I will look into this.

code reference

LinusDierheimer commented 2 years ago

BTW you can force both gtk and fastfetch to prefer a specific config file by setting the GTK<VERSION>_RC_FILES environment variable.

c02y commented 2 years ago

I used to use xfce and cinnamon, but I deleted all of them and switched to i3 and use lxappearance-gtk3 to set the theme and system-wide font family and size instead, the old configuration from fastfetch or dconf/gsettings must come from old configuration I set in xfce or cinnamon.

Since I don't use xfce or cinnamon now, and I only use lxappearance-gtk3 for configuration, I tried to remove ~/.config/dconf/user and reboot my system, now fastfetch gets

Theme: Adwaita-dark [GTK2], Adwaita [GTK3/4]
Icons: ePapirus-Dark [GTK2], Adwaita [GTK3/4]
Font: Noto Sans (12pt) [GTK2], Cantarell (11pt) [GTK3/4]

They are still different, since I use lxappearance-gtk3 to set those values, but fastfetch says the values I set are for gtk2, how can I get the values I set correctly (BTW: I don't have gtk4 installed)?

  1. I don't have gtk4 installed, fastfetch shouldn't display gtk4 info
  2. I use lxappearance-gtk3 for configuration tool, it should work for both gtk2 and gtk3 at the same time
c02y commented 2 years ago

UPDATE: I already used dconf-editor to set the three variables, now they are the same for GTK2/3/4

If the info fastfetch I get is not a bug, you can close this issue as you like.

LinusDierheimer commented 2 years ago

TBH i am not sure if this is a bug or not, still reading through pages of GTK doc. Either way the GTK code needs some polishing, so i am leaving this open.

c02y commented 2 years ago

I just install a fresh Archlinux + i3 on the VM, and didn't install any DE like xfce or cinnamon, and install fastfetch and get its info

Theme: Adwaita [GTK2/3/4]
Icons: Adwaita [GTK2/3/4]
Font: Cantarell (11pt) [GTK2/3/4]

Then I install lxappearance-gtk3 and the necessary theme/font/icon packages and use lxapperance-gtk3 to set them as theme: Adwaita-dark, icon: ePapirus-Dark, font: Font: Noto Sans (12pt), then run fastfetch again, the result from fastfetch is the same old default ones. So lxappearance-gtk3 doesn't affect the result of fastfetch at all.

But I also tried screenfetch and neofetch, they are using the result of lxappearance-gtk3, and there is no gtk4 in the results of screenfetch and neofetch which is right since I didn't have gtk4 installed, fastfetch shows gtk4 which is not right.

LinusDierheimer commented 2 years ago

Should be working now.