Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Minimal neofetch clone written in C
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
_will.420_
n00b
n00b


Joined: 23 Mar 2021
Posts: 9

PostPosted: Mon Jun 19, 2023 3:50 pm    Post subject: Minimal neofetch clone written in C Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31269
Location: here

PostPosted: Mon Jun 19, 2023 6:04 pm    Post subject: Reply with quote

Have you tried https://github.com/fastfetch-cli/fastfetch yet?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 934
Location: Romania

PostPosted: Tue Jun 20, 2023 12:08 am    Post subject: Re: Minimal neofetch clone written in C Reply with quote

_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.
fedeliallalinea wrote:
Have you tried https://github.com/fastfetch-cli/fastfetch yet?

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
View user's profile Send private message
stefan11111
l33t
l33t


Joined: 29 Jan 2023
Posts: 934
Location: Romania

PostPosted: Tue Jun 20, 2023 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum