diff options
| -rw-r--r-- | Makefile | 18 | ||||
| -rw-r--r-- | include/cfetch.h | 17 | ||||
| -rw-r--r-- | src/ascii.c | 17 | ||||
| -rw-r--r-- | src/cfetch.c | 40 | ||||
| -rw-r--r-- | src/sysinfo.c | 18 | ||||
| -rw-r--r-- | src/utils.c | 17 |
6 files changed, 107 insertions, 20 deletions
@@ -1,11 +1,19 @@ -# cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +# cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. # Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the +# Free Software Foundation, either version 3 of the License, +# or (at your option) any later version. # +# cfetch is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see <https://www.gnu.org/licenses/>. + CC = gcc CFLAGS = -Wall -Wextra -Wundef -Wshadow -Wformat=2 diff --git a/include/cfetch.h b/include/cfetch.h index b08c471..47a21d8 100644 --- a/include/cfetch.h +++ b/include/cfetch.h @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + #ifndef CFETCH_H #define CFETCH_H diff --git a/src/ascii.c b/src/ascii.c index f2e466f..f1365db 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + #include "../include/cfetch.h" #include <stddef.h> #include <stdio.h> diff --git a/src/cfetch.c b/src/cfetch.c index 6edcd87..fd53ae5 100644 --- a/src/cfetch.c +++ b/src/cfetch.c @@ -1,10 +1,18 @@ /* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. * Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> * -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <https://www.gnu.org/licenses/>. */ #ifndef CFETCH_VERSION @@ -25,22 +33,24 @@ int main(void) { // 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; } + /* not yet implemented: + get_os: Ubuntu <version> + get_uptime + get_packages + get_shell + get_resolution + get_de + get_wm + get_terminal + get_host: Laptop name? Precision 7680 + get_gpu + get_colours ? + */ diff --git a/src/sysinfo.c b/src/sysinfo.c index eddaa02..7d72e02 100644 --- a/src/sysinfo.c +++ b/src/sysinfo.c @@ -1,3 +1,21 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + + #include "../include/cfetch.h" #include <stdio.h> #include <sys/utsname.h> diff --git a/src/utils.c b/src/utils.c index 16f7589..395196a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1,3 +1,20 @@ +/* cfetch is my try to implement a neofetch/fastfetch/commiefetch clone in C. +* Copyright (C) 2026 Anser <https://codeberg.org/Anser/cfetch> +* +* cfetch is free software: you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the +* Free Software Foundation, either version 3 of the License, +* or (at your option) any later version. +* +* cfetch is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +* See the GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License along +* with this program. If not, see <https://www.gnu.org/licenses/>. +*/ + #include "../include/cfetch.h" #include <string.h> |
