This commit is contained in:
COW_ILLUMINATI 2024-05-28 16:16:53 -04:00
parent 7851ba62a5
commit 4159e91840
3 changed files with 48 additions and 0 deletions

6
Makefile Normal file

@ -0,0 +1,6 @@
all:
g++ cowfetch.cpp -o cowfetch
install:
cp cowfetch /usr/local/bin/
mkdir -p /etc/cowfetch
cp logo.ascii /etc/cowfetch/logo.ascii

22
cowfetch.cpp Normal file

@ -0,0 +1,22 @@
#include <iostream>
#include <fstream>
#include <chrono>
#include <thread>
int main() {
std::ifstream file("/etc/cowfetch/logo.ascii");
if (!file.is_open()) {
std::cerr << "Error opening file" << std::endl;
return 1;
}
char c;
while (file.get(c)) {
std::cout << c;
std::cout.flush(); // Ensure the output is displayed immediately
std::this_thread::sleep_for(std::chrono::milliseconds((1))); // Adjust the speed here
}
file.close();
return 0;
}

20
logo.ascii Normal file

@ -0,0 +1,20 @@
M M cow@MooOs
M M ---------
MM MM OS: MooOs Linux 0.2 (LFS systemd 12.1)
MM MM Host: Framework Laptop 16 (AMD Ryzen 7040 Series) AG
MMM %%%%%%%%% MMMM Kernel: Linux 6.9.2
m$$$ MMMMMM%%%m%%%%%mm%%%%MMMMMMM$$$$$ Package Manager: cowtool
m^ ^^^$$$MM%%mMMmmmmMMMmm%%%%MM$$$^^ ^m$ Shell: Bash 5.2.21
mM__ ^^$%%mmMMMmmMMMMMMm%%% $^^^ __Mm Resolution: 2560x1600
mMMMmm_++%mMMMMmMMMmm%+++_% mmMMMm WM: bspwm
*@\ +%mMMMMMMMM%+ /@* Terminal: alacritty
-- %mMMMMMMM%% -- M CPU: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16) @ 5.137GHz
^mMMMMMMM%^ M& GPU: AMD ATI c4:00.0 Phoenix1
^mMMMMMMMMM%^ MM& GPU: AMD ATI Radeon RX 7700S/7600/7600M XT/PRO W7600
^%u^^MMMMM^^U%% M&;M& Memory: 15286MiB
^mM%; ^++^^ ;%MM%^ M&,:;M&
%mMM%. .%mMMMM^ M&,..:;MM&
%%m%_ _%mMM% &&,...:;;M&&
^&mmmmmmm&$$$&&^ M&,.....::;M&
^**~~~~~~**^ M&,........:;M