diff options
| author | Anser <rostgans@tutamail.com> | 2026-08-14 10:43:03 +0200 |
|---|---|---|
| committer | Anser <rostgans@tutamail.com> | 2026-08-14 10:52:39 +0200 |
| commit | 537230def11fddb3a63f8b4d0bf9b5d64b96e6d0 (patch) | |
| tree | ebb6df16806d45dce9d050b2e7917c5def09c994 /src/cfetch.c | |
| parent | 2e72081d3803d5627c10924b3c20099a964d4bef (diff) | |
Changed codingstyle to C kernel style. Print of Systeminformation is now its own function
all systeminformation is now stored inside the struct
Diffstat (limited to 'src/cfetch.c')
| -rw-r--r-- | src/cfetch.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/cfetch.c b/src/cfetch.c index e9f473d..6edcd87 100644 --- a/src/cfetch.c +++ b/src/cfetch.c @@ -8,7 +8,7 @@ */ #ifndef CFETCH_VERSION -#define CFETCH_VERSION 0.1.0 +#define CFETCH_VERSION 0.1.1 #endif #include "../include/cfetch.h" @@ -18,29 +18,29 @@ int main(void) { - - system_info_t info = { 0 }; - // set default artwork - int art_logo = 1; - - // set systeminformation - // use // to uncomment or comment - // get_os: Ubuntu <version> - // get_host: Laptop name? Precision 7680 - get_kernel(&info); - // get_uptime - // get_packages - // get_shell - // get_resolution - // get_de - // get_wm - // get_terminal - get_cpu(&info); - //get_gpu - get_memory(&info); - - print_ascii_art(&info, art_logo); - - // get_colours ? - return 0; + struct system_info_t info = { 0 }; + //info.debug = 1; + // set default artwork + info.ascii_art = 0; + + // set systeminformation + // use // to uncomment or comment + // get_os: Ubuntu <version> + // get_host: Laptop name? Precision 7680 + get_kernel(&info); + // get_uptime + // get_packages + // get_shell + // get_resolution + // get_de + // get_wm + // get_terminal + get_cpu(&info); + //get_gpu + get_memory(&info); + + print_system_info(&info); + + // get_colours ? + return 0; } |
