KittyKatt / screenFetch

Fetches system/theme information in terminal for Linux desktop screenshots.
GNU General Public License v3.0
3.84k stars 454 forks source link

OpenBSD disk fix and kernel line improvement #648

Closed julianaito closed 4 years ago

julianaito commented 4 years ago

Hi,

This OpenBSD-specific PR contains:

A disk fix

OpenBSD df has no -c option, and has no equivalent. The disk line stays empty.

The default case also assumes df is GNU df. Instead, i'm proposing here a more posix-compliant version, that even works against GNU df and awk.

Numbers are slightly different (see captures against GNU df) probably due to different rounding methods. I've limited the use case to OpenBSD anyway.

A kernel line improvement

Before: 6.6 (GENERIC.MP) #356 (no architecture mention)

After: 6.6 GENERIC.MP#356 amd64

capture_2019-10-12_040719_25344 capture_2019-10-12_041127_19401

KittyKatt commented 4 years ago

Looks good to me.