HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
291 stars 37 forks source link

[macOS] ASCII art and entries aren't colored #98

Closed GentleHoneyLover closed 3 years ago

GentleHoneyLover commented 3 years ago

Describe the bug archey4 produces a correct output, however ascii art and categories are not colored.

Expected behavior ascii art and categories are colored

Screenshots archey4 output:

Screen Shot 2021-04-19 at 16 27 58

original archey output:

Screen Shot 2021-04-19 at 16 29 07

Environment

HorlogeSkynet commented 3 years ago

Hi @GentleHoneyLover ! Thanks for opening this up.

I won't lie to you, it was mainly on purpose so as to keep a first support for Darwin very easy and quick to implement. On the other hand, Apple logo isn't colored anymore since 1998... So I really wonder(ed) whether Archey should keep it that way.

Tell me what you think about that. Bye 👋

GentleHoneyLover commented 3 years ago

Hi @HorlogeSkynet,

I personally like the retro-style of apple logo in the original archey. Keeping it just white is a dull and not interesting. I would personally prefer archey4 to use exactly the same ascii art and coloring as original archey. It looks clean, minimalistic and classy (with a touch of retro).

I would also prefer the categories to be colored (User, Hostname, Model, etc) — otherwise it's very difficult to read the output!

I wish I could help with a pull request but I'm not a coder :(

But great project — thanks for doing this! I prefer archey to neofetch because it's fast and has no dependencies. It's great to see someone carrying it forward!

HorlogeSkynet commented 3 years ago

I personally like the retro-style of apple logo in the original archey.

Well, I guess we'll have to go through a configurable option then. I'll try to think about a KISS implementation to allow logo variants.

Keeping it just white [...].

Actually, it's a different white as the one use for the text 😉

I would also prefer the categories to be colored [...] !

Do you think about a specific color for them ?

I wish I could help with a pull request but I'm not a coder :(

It's not an issue. Would you be able to checkout a Git branch and locally trying it out though ?

But great project — thanks for doing this! I prefer archey to neofetch because it's fast and has no dependencies. It's great to see someone carrying it forward!

Thanks, appreciated 🙇 There are actually 2 dependencies, including one optional. Anyway, if you install from with pip or brew, they are "implicit" from an user PoV.

Bye 👋

GentleHoneyLover commented 3 years ago

Do you think about a specific color for them ?

Cyan (like in archey) works well I think. I know that neofetch, for example, has an accent color configurable via config file. Since you already have a config file implemented, maybe there could be an option switch to customize the default accent color?

It's not an issue. Would you be able to checkout a Git branch and locally trying it out though ?

Sure, that I can do. Let me know when you do changes you'd like me to test

There are actually 2 dependencies, including one optional. Anyway, if you install from with pip or brew, they are "implicit" from an user PoV.

Sure, it's nothing like neofetch which pulls two dozed of dependencies with it.

HorlogeSkynet commented 3 years ago

Hey @GentleHoneyLover, latest master implements a new -l option to allow alternative logo styles. Would you try it out and tell me what you think about it ? On your system, once git pull-ed, something like python3 -m archey -l retro should be OK.

I didn't implement :

[...] maybe there could be an option switch to customize the default accent color?

... as such "accent" colors are being used as integrated logos internal colors, hence for consistency purposes, it wouldn't make sense to let it configurable at runtime.

Bye :wave:

GentleHoneyLover commented 3 years ago

@HorlogeSkynet,

Thanks for the update! Here's what I'm getting:

Screen Shot 2021-04-27 at 20 40 36

Looks much cooler! ;)

Do you think it would be possible to update the ascii art itself? Using just "#" symbol looks much cleaner :) But I'm being picky I guess.

             ###
           ####
           ###
   #######    #######
 ######################
#####################
####################
####################
##################### 
 ######################
  ####################
    ################
     ####     #####

Another piece of feedback is that you might want to consider "proper" human-readable names for the categories. E.g., "Desktop Environment:" instead of "DesktopEnvironment:" or "LAN IP:" instead of "LanIP:", etc.

Thanks for the great project! ;)

HorlogeSkynet commented 3 years ago

Another piece of feedback is that you might want to consider "proper" human-readable names for the categories. E.g., "Desktop Environment:" instead of "DesktopEnvironment:" or "LAN IP:" instead of "LanIP:", etc.

I'm pinning this to Core project kanban. I'll try to handle it soon, before drafting a new version.

HorlogeSkynet commented 3 years ago

Another piece of feedback is that you might want to consider "proper" human-readable names for the categories. E.g., "Desktop Environment:" instead of "DesktopEnvironment:" or "LAN IP:" instead of "LanIP:", etc.

... and I almost forgot, you can already "customize" entries names from configuration, with the name key. From README :

// ...
        {
            "type": "CPU",
            // Set to `true` to join all CPUs on the same line.
            "one_line": false,
            // Set to `false` to hide the number of cores.
            "show_cores": true,
            //
            // As explained above, you may rename entries as you wish.
            "name": "Processor"
        },
// ...
GentleHoneyLover commented 3 years ago

Got it! Thanks!

HorlogeSkynet commented 3 years ago

Both features have been released in v4.12.0, which is already available on Homebrew. Cheers 👋