Neofetch: Disk label is yellow by default

Created on 25 Jan 2017  路  13Comments  路  Source: dylanaraps/neofetch

Description

By default, the label for info disk is yellow:

print_info() {
    ...
    info memory
    info disk
    ...
}

Neofetch version

3.0 on OSX 10.12.3

Screenshot

screen shot 2017-01-25 at 11 18 57 am

Verbose log

https://gist.github.com/anonymous/c2ef68eafb09e48c8aa3719844e7faa9

Bug

Most helpful comment

Done!

Thanks for your input. :)

All 13 comments

I'm curious, is this your expected output (since you deleted the subtitle)?

2294MB / 16384MB
58G / 279G

I've fixed the issue. #641

I won't merge this until @konimex's question is answered so we can figure out the expected output. The PR currently prints it like the comment above.

I agree with @konimex. Totally missed the label added to the output.

Will merge the fix now :+1:

@dylanaraps Not too sure what you would do in the case of multiple disks though...

We can append the disk name to the end of the string:

58G / 279G (21%) [/]
58G / 279G (21%) [/mnt/Local Disk]

Actually, I'd prefer it at the beginning hierarchy-wise. Thoughts?

Like this?

Also which brackets (if any)?

[/] 58G / 279G (21%)
[/mnt/Local Disk] 58G / 279G (21%) 

(/) 58G / 279G (21%)
(/mnt/Local Disk) 58G / 279G (21%) 

/: 58G / 279G (21%)
/mnt/Local Disk: 58G / 279G (21%) 

Yes. As far as formatting goes I would remove the brackets. Just like how the OS X diskutil list command does:

/dev/disk0 (internal):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                         500.3 GB   disk0
   1:                        EFI EFI                     314.6 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            300.3 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data BOOTCAMP                199.0 GB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Macintosh HD           +300.0 GB   disk1

Just to confirm, you'd prefer this?:

/: 58G / 279G (21%)
/mnt/Local Disk: 58G / 279G (21%) 

Also what color would you expect the output to be?

This is what it currently looks like:

2017-01-26-184521_210x74_scrot

Yes, but that's just my opinion. It's think it's arbitrary and can be changed later if needed/wanted.

I would expect the color to be the color of the title if it's considered as part of the title:

Disk /: 58G / 279G (21%)
Disk /mnt/Local Disk: 58G / 279G (21%) 

Otherwise I'd expect it to be the same color of the value:

Disk:
    /: 58G / 279G (21%)
    /mnt/Local Disk: 58G / 279G (21%) 

Done!

Thanks for your input. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rudylorren picture rudylorren  路  8Comments

shawniac picture shawniac  路  4Comments

dylanaraps picture dylanaraps  路  8Comments

pelomedusa picture pelomedusa  路  4Comments

dylanaraps picture dylanaraps  路  3Comments