fastfetch-cli / fastfetch

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

[FEAT] Icons support #1112

Closed MyszeqPL closed 1 month ago

MyszeqPL commented 1 month ago

Be sure to read FAQ before submitting a new issue.

Wanted features:

I suggest adding icons support

For example, instead of

      /\          ara@arch
     /  \         --------
    /    \        OS: Arch Linux x86_64
   /      \       Host: (serial) (ThinkPad T470 W10DG)
  /   ,,   \      Kernel: Linux 6.9.10-zen1-1-zen
 /   |  |   \     CPU: Intel(R) Core(TM) i5-6300U (4) @ 3.00 GHz
/_-''    ''-_\    Memory: 6.36 GiB / 15.50 GiB (41%)
                  Uptime: 8 hours, 39 mins

the program could display

      /\          ara@arch
     /  \         --------
    /    \        : Arch Linux x86_64
   /      \       : (serial) (ThinkPad T470 W10DG)
  /   ,,   \      : Linux 6.9.10-zen1-1-zen
 /   |  |   \     : Intel(R) Core(TM) i5-6300U (4) @ 3.00 GHz
/_-''    ''-_\    : 6.36 GiB / 15.50 GiB (41%)
                  : 8 hours, 39 mins

.

Another one:

                  -`                     ara@arch
                 .o+`                    --------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: (serial) (ThinkPad T470 W10DG)
              `+oooooo:                  Kernel: Linux 6.9.10-zen1-1-zen
              -+oooooo+:                 Uptime: 8 hours, 39 mins
            `/:-:++oooo+:                Packages: 1300 (pacman)
           `/++++/+++++++:               Shell: zsh 5.9
          `/++++++++++++++:              Resolution: 1920x1080 1920x1080
         `/+++ooooooooooooo/`            DE: KDE Plasma 6.1.3
        ./ooosssso++osssssso+`           WM: KWin (Wayland)
       .oossssso-````/ossssss+`          WM Theme: summaculate-night-blur
      -osssssso.      :ssssssso.         Theme: Breeze (MacSonomaDark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3/4]
     :osssssss/        osssso+++.        Icons: Sumac-Night [Qt], Sumac-Night [GTK2/3/4]
    /ossssssss/        +ssssooo/-        Terminal: konsole 24.5.2
  `/ossssso+/:-        -:/+osssso+-      Terminal Font: Hack Nerd Font Mono 11
 `+sso+:-`                 `.-/+oso:     CPU: Intel(R) Core(TM) i5-6300U (4) @ 3.00 GHz
`++:.                           `-/+/    GPU: Intel HD Graphics 520 @ 1.00 GHz [Integrated]
.`                                 `/    Memory: 6360 MiB / 15869 MiB

into

                  -`                     ara@arch
                 .o+`                    --------
                `ooo/                    : Arch Linux x86_64
               `+oooo:                   : (serial) (ThinkPad T470 W10DG)
              `+oooooo:                  : Linux 6.9.10-zen1-1-zen
              -+oooooo+:                 : 8 hours, 39 mins
            `/:-:++oooo+:                󰏖: 1300 (pacman)
           `/++++/+++++++:               : zsh 5.9
          `/++++++++++++++:              󰍹: 1920x1080 1920x1080
         `/+++ooooooooooooo/`            : KDE Plasma 6.1.3
        ./ooosssso++osssssso+`           : KWin (Wayland)
       .oossssso-````/ossssss+`          󰔌: summaculate-night-blur
      -osssssso.      :ssssssso.         󰌁: Breeze (MacSonomaDark) [Qt], Breeze-Dark [GTK2], Breeze [GTK3/4]
     :osssssss/        osssso+++.        : Sumac-Night [Qt], Sumac-Night [GTK2/3/4]
    /ossssssss/        +ssssooo/-        : konsole 24.5.2
  `/ossssso+/:-        -:/+osssso+-      : Hack Nerd Font Mono 11
 `+sso+:-`                 `.-/+oso:     : Intel(R) Core(TM) i5-6300U (4) @ 3.00 GHz
`++:.                           `-/+/    󱁉: Intel HD Graphics 520 @ 1.00 GHz [Integrated]
.`                                 `/    : 6360 MiB / 15869 MiB

Motivation:

Mostly minimalism, yes. oh yeah, if this feature already exists, I must be misinformed, sorry in advance.

Thank you:

Thank you for this amazing peace of open software!

CarterLi commented 1 month ago

It's about theming. We won't display icons by default as not everyone uses nerd fonts, but you can always customize fastfetch as what you want.

Try fastfetch -c examples/2

MyszeqPL commented 1 month ago

Oh, so icon support exists. Next time I want to post a feature request, I'll check every single example config. Marking as closed.

XhmikosR commented 1 month ago

@CarterLi did you test the patch on Windows? The code diff shows the icons don't work on Firefox on Windows 11. The terminal output looks the same as before, though, which is a good thing if the symbols aren't supported.

image

CarterLi commented 1 month ago

image

You must use the newest nerd fonts. https://www.nerdfonts.com/

XhmikosR commented 1 month ago

Ah, I wasn't aware this required a specific font. As long as it doesn't break anything, it's all good. Thanks for the reply!

On Wed, Jul 24, 2024, 08:39 Carter Li @.***> wrote:

image.png (view on web) https://github.com/user-attachments/assets/4c187fbb-304d-4e80-84cc-97e317a58181

You must use the newest nerd fonts. https://www.nerdfonts.com/

— Reply to this email directly, view it on GitHub https://github.com/fastfetch-cli/fastfetch/issues/1112#issuecomment-2246944242, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACVLNOUR52U2DGBZZH7Z63ZN4427AVCNFSM6AAAAABLIR5JPSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBWHE2DIMRUGI . You are receiving this because you commented.Message ID: @.***>

CarterLi commented 1 month ago

As I said before

We won't display icons by default as not everyone uses nerd fonts