View previous topic :: View next topic |
Author |
Message |
_will.420_ n00b
Joined: 23 Mar 2021 Posts: 9
|
Posted: Mon Jun 19, 2023 3:50 pm Post subject: Minimal neofetch clone written in C |
|
|
I have wrote a simple neofetch clone in C, since neofetch just didn't want to work with the dash shell. If you want to check it out the repo is here https://github.com/africavoid/cfetch, I am new to C so feel free to criticize the code and give me ideas for other projects, or how to make this code more efficient.
The program is configured from source like dwm and looks at a file called conf in $HOME/.config/cfetch, the idea is to put your ascii art in here. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31269 Location: here
|
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Jun 20, 2023 12:08 am Post subject: Re: Minimal neofetch clone written in C |
|
|
_will.420_ wrote: | I have wrote a simple neofetch clone in C, since neofetch just didn't want to work with the dash shell. If you want to check it out the repo is here https://github.com/africavoid/cfetch, I am new to C so feel free to criticize the code and give me ideas for other projects, or how to make this code more efficient.
The program is configured from source like dwm and looks at a file called conf in $HOME/.config/cfetch, the idea is to put your ascii art in here. |
Nice and minimal, just as I like.
I would move all config options to a header file though.
Fastfetch is already in ::gentoo.
Code: | $ eix -I fastfetch
[I] app-misc/fastfetch
Available versions: **0.1.9999*l **0.2.9999*l (~)1.11.3 {X chafa dbus gnome imagemagick networkmanager opencl opengl osmesa pci pulseaudio sqlite vulkan wayland xcb xfce xrandr}
Installed versions: 1.11.3(03:33:05 AM 06/11/2023)(X -chafa -dbus -gnome -imagemagick -networkmanager -opencl -opengl -osmesa -pci -pulseaudio -sqlite -vulkan -wayland -xcb -xfce -xrandr)
Homepage: https://github.com/LinusDierheimer/fastfetch
Description: Fast system information tool |
_________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
stefan11111 l33t
Joined: 29 Jan 2023 Posts: 934 Location: Romania
|
Posted: Tue Jun 20, 2023 4:34 pm Post subject: |
|
|
I wrote an ebuild and added it to my overlay.
There are a few things I found wrong about your project.
The first one is that it doesn't have a license. Such projects are usually considered all rights reserved. Since you gave us the source code, I assumed this isn't the case, forked your repo and added the GPLv3 license.
The second one is that your Makefile doesn't use DESTDIR and PREFIX, which make in unusable by portage.
I opened a pr to fix these. _________________ My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev" |
|
Back to top |
|
|
|