Commit graph

265 commits

Author SHA1 Message Date
TheDarkBug
b86783c774 Uwufetch now compiles on freebsd, but there is little to no info. 2021-07-21 22:36:10 +02:00
dqnk
54bb079c6b
Update uwufetch.c
Added comments which should hopefully explain the behavior correctly.
2021-07-21 21:42:32 +02:00
dqnk
45f0647bcc fixed #111 (hopefully) 2021-07-21 21:39:17 +02:00
dqnk
d39d03f482 updated truncate_name method 2021-07-21 17:10:56 +02:00
Guaxinim5573
23a78175d5 Add distro names to uwufy kernel 2021-07-04 14:54:28 -03:00
Guaxinim5573
29de794e56 Uwufy kernel name 2021-07-04 14:38:10 -03:00
LukeHuckman
fd1b9e6cfc Code cleanup 2021-06-24 04:17:28 +08:00
LukeHuckman
8d53fe306e free already has an -m option to get value in mebibytes. Using that instead of calculating it in the code. 2021-06-24 04:03:48 +08:00
Darkpelz
9eb6df1eb4
Update uwufetch.c 2021-06-24 03:58:51 +08:00
LukeHuckman
b767645854 Replaced ifs with a switch statement for printing uptime 2021-06-24 03:46:22 +08:00
LukeHuckman
daabd44a9e RAM usage now uses correct units (MiB instead of MB),
tweaked uptime to only show hours when relevant (>=1 hour).
2021-06-24 03:24:43 +08:00
TheDarkBug
dc451cd550 Fixed host info for termux 2021-06-13 13:57:28 +02:00
TheDarkBug
664fa5c8c2 Added host info, fixed install and uninstall process 2021-06-13 13:52:32 +02:00
Emily
141fd7709e fix package count for openSUSE
zypper shows some informational messages before printing the actual
packages, so this commit adds the "-q" flag to suppress the
informational output und to provide a more accurate package count
2021-06-10 18:02:40 +02:00
TheDarkBug
5cd38bc202 Wrong mac os logo should be fixed, even without printing packages info (#81) 2021-06-07 13:02:12 +02:00
TheDarkBug
a74aa5e02c Wrong mac os logo should be fixed (#81) 2021-06-07 13:00:17 +02:00
TheDarkBug
ee077ce0c8 Fixed #81 and issues in #98 by not using pkgman in mac os 2021-05-31 01:04:32 +02:00
mTvare6
cb5dbf0436 (fix): list only installed not available 2021-05-20 21:26:09 +05:30
kbhamster
438500345e Replaced resolution with resowution and shell with sheww 2021-05-10 17:57:38 +03:00
TheDarkBug
743b72d04e Replaced cut with awk, for better compatibility (at least in theory) 2021-05-08 14:38:43 +02:00
Veikka Valtteri Kallinen
531df9fff9 fix cut command so it works with busybox cut 2021-05-08 13:10:49 +03:00
PK
97efde20e7
Added Slackware and Solus ASCII art. 2021-05-07 14:07:22 -05:00
PK
75e3b42f2c
Added every distribution to the list. Other minor adjustments. 2021-05-07 13:49:21 -05:00
PK
7365482790
Fix for older versions of EndeavourOS 2021-05-06 17:21:05 -05:00
Adriano Oliviero
55c8e9feb8 Fixed endless 1s on mac os, but the package count is absolutely wrong 2021-05-03 04:18:33 -07:00
Adriano Oliviero
e1afaa3b99 Illegal hardware instruction on mac os was fixed, but the package function is still not working 2021-05-03 03:59:38 -07:00
sech1p
997b2d0239 Add Windows 2021-05-03 03:46:55 +02:00
sech1p
56f90af287 Add macOS to distribution list 2021-05-03 01:04:18 +02:00
dqnk
938520b4f3 added counting of packages for different package managers 2021-04-27 11:07:58 +02:00
TheDarkBug
1cae7829f7 Replaced 'endeavour' with 'endeavouros', closed #85 2021-04-27 09:49:07 +02:00
Adriano Oliviero
583407fa76 Added endeavouros ascii logo, merged manjaro and manjaro arm, replaced all 'w' (in ascii logos) with u03c9 (greek uppercase omega) 2021-04-27 09:36:02 +02:00
Adriano Oliviero
09b32b1e1e Changed parse_config(), now it works without json-c 2021-04-23 18:02:05 +02:00
TheDarkBug
9752cfa15c Changed config parsing method from just text to json, with json-c library. 2021-04-19 00:01:29 +02:00
TheDarkBug
c802f4041f Added .prettierignore to avoid removing tabs in man page. 2021-04-18 23:51:32 +02:00
LukeHuckman
63f22a8aa4 Typo: flatpak, not flatpack 2021-04-17 21:25:06 +08:00
sech1p
3016198062 fix uwufetch mac code 2021-04-16 14:11:36 +02:00
TheDarkBug
5ac94df5bf Removed merge ======= and reformatted code with prettier 2021-04-16 10:52:28 +02:00
TheDarkBug
5af3aed378
Merge branch 'main' into main 2021-04-16 10:50:34 +02:00
TheDarkBug
4b2f69c166 Fixed build errors on linux (line 356) 2021-04-16 10:48:39 +02:00
TheDarkBug
59900252d0
Merge branch 'main' into main 2021-04-16 10:42:46 +02:00
LukeHuckman
5a511a1f9e Hide resolution by default on headless systems 2021-04-16 16:32:00 +08:00
Guaxinim5573
de452de49c Add resolution support 2021-04-15 18:52:12 -03:00
sech1p
0218e64e02 Add macOS support 2021-04-15 22:59:43 +02:00
LukeHuckman
a1877c924e Removed now unnecessary comments, some cleanup 2021-04-16 00:36:26 +08:00
LukeHuckman
034a1c22c7 Fixed broken uptime value and added days 2021-04-16 00:25:38 +08:00
TheDarkBug
45f26524c0 Formatted every file with , as suggested in #73 2021-04-15 09:33:51 +02:00
TheDarkBug
63427834e3 Formatted every file with , as suggested in #73 2021-04-15 09:28:57 +02:00
Guaxinim5573
d0c8e5c1d7 Update usage 2021-04-14 18:46:48 -03:00
Guaxinim5573
028a269b24 add --config 2021-04-14 18:38:49 -03:00
Guaxinim5573
e4acabada7 merge --custom and --image 2021-04-14 17:25:11 -03:00
TheDarkBug
119504feb4 Fixed #71, added prettier kernel info. 2021-04-14 18:19:17 +02:00
TheDarkBug
3ce44faf68 Added new config options, disabled optimization in makefile to prevent segmentation fault (i have no idea) 2021-04-14 12:33:05 +02:00
TheDarkBug
69fe7f2614 Added --config option to change config path 2021-04-14 11:09:23 +02:00
TheDarkBug
313a5a4013 Improved parse_config(), added man page to .gitignore 2021-04-14 10:32:12 +02:00
Guaxinim5573
c403d0a597 add config file parser 2021-04-13 19:21:29 -03:00
TheDarkBug
eb2471b86f Added man pages, close #68 2021-04-12 13:16:45 +02:00
TheDarkBug
873c3f7246 Added guix to --list. 2021-04-10 18:31:36 +02:00
PK
8c031b9817 Added ASCII support for GNU + GNU Guix. 2021-04-10 10:47:33 -05:00
TheDarkBug
8205a8cad7 Converted all white-spaces with tabs, I'm currently planning to add a 'code of conduct' file and a 'contributing' file, to guide new contributors 2021-04-07 14:13:15 +02:00
TheDarkBug
33eecc61b3
Merge branch 'main' into main 2021-04-07 13:49:32 +02:00
dqnk
554b9fefae fixed issue with sys.uptime being printed as 0 2021-04-07 13:17:29 +02:00
Emily
5ad00b16c8 Make Codestyle consistent
When more and more people started contributing to uwufetch, consistent codestyle was quickly lost. Some people used tabs, some people used spaces.
Even brace style was different for different contributors.
This patch makes the codystyle consistent again, using the codestyle used by TheDarkBug on commit f12c1be5fe because this was the last commit where TheDarkBug was the only contributor.
Commands used:
 - indent -kr -slc -br -brf -brs -i4 -cli4 uwufetch.c
 - some emacs macros
2021-04-06 17:13:15 +02:00
Guaxinim5573
cf137e4155 Fixes 0MB ram usage 2021-04-04 18:48:04 -03:00
TheDarkBug
ebd6b609e7 Updated help message because now --opt works, fixed too high info printing with image option. 2021-04-03 23:04:27 +02:00
dqnk
b25524a976 removed more unused variables 2021-04-02 09:52:20 +02:00
dqnk
8d3614674d Fixed issue with printing ram #59 2021-04-02 09:41:03 +02:00
Emily
e1ef8a890f add support for openSUSE Tumbleweed 2021-03-31 21:23:00 +02:00
Guaxinim5573
6f592e3f4a Add long options support 2021-03-31 12:47:07 -03:00
dqnk
9787f5b394 solved issue #54 2021-03-21 21:07:09 +01:00
dqnk
8a9595179e formated the code so that it will be easier to print more data in the future if we ever decide to 2021-03-21 20:17:49 +01:00
dqnk
d684bc0ec3 added removing of square brackets from GPU names 2021-03-21 20:07:22 +01:00
P.K
a0bedd1dbf
Quick fix 2021-03-19 17:01:52 -05:00
PK
c17d7a5a9d OpenSUSE icon tweak, Zypper support + APT readded 2021-03-19 16:52:51 -05:00
TheDarkBug
cc6cc72a2e
Merge pull request #51 from MineClashTV/main
Shorten names to the width of the terminal automatically
2021-03-19 20:59:16 +01:00
Pascal Puffke
9e299dc8a4
I'm tired 2021-03-19 19:38:46 +01:00
Pascal Puffke
ec1af43272
Fix CPU and GPU length based on terminal width
If the CPU or GPU name strings are longer than the terminal width minus 28, truncate them
2021-03-19 19:21:35 +01:00
zegolem
953397e178 Merge https://github.com/TheDarkBug/uwufetch into gpu-fix 2021-03-19 18:10:29 +01:00
zegolem
208c40c19e gpu: forced LANG environement variable to en_US before running lshw
Before, as my system is configured with LANG=fr_FR
so, lshw would output in french, and the program
couldn't find the right strings in the output,
and so, my GPU wasn't properly detected.

There may be other instances of similar issues
in the code, but for now, everything shows up
correctly for me.
2021-03-19 17:44:35 +01:00
TheDarkBug
3ada75bbaa Fixed -Wsign-compare. 2021-03-19 17:28:09 +01:00
TheDarkBug
7f26eb72f9
Merge pull request #48 from zeGolem/cleaner-pkgmans
Code cleanup: rewrote pkgmans() to be cleaner
2021-03-19 17:23:35 +01:00
TheDarkBug
16fd121d50 Fixed #47, gpu_model[] min length is now 2. 2021-03-19 17:04:50 +01:00
zegolem
9e373494fe Code cleanup: rewrote pkgmans() to be cleaner
It uses now a `package_manager` struct, and is overall nicer to work
with, especially to add new package managers. You now just have to add a
new entry to the array.
2021-03-19 16:56:24 +01:00
TheDarkBug
c3af321196 New disclaimer in -h option, we need double-dash options (--opt) 2021-03-19 10:54:42 +01:00
TheDarkBug
fbadd43ad3 New ascii owosuse (I'm not an artist, so i created a minster), closed #44. 2021-03-18 23:22:12 +01:00
TheDarkBug
a73c3bf70c Rearranged comments and some variables initialization. 2021-03-18 22:53:32 +01:00
dqnk
5d91c163cb added multi-gpu support - up to 8 gpus 2021-03-18 21:54:29 +01:00
TheDarkBug
596b2ce458 Replaced with (line 180), trying to fix #43 2021-03-17 10:38:48 +01:00
TheDarkBug
20958b6118 Fixed #42, shortened shell name for termux. 2021-03-16 20:25:09 +01:00
TheDarkBug
117dfe96dd Fixed #39 with gpu_name max length. 2021-03-16 15:26:25 +01:00
TheDarkBug
a695c922f4 Theoretically fixed gpu name being too long, new 'Requisites' in readme, now uwufetch depends from lshw 2021-03-16 09:10:54 +01:00
TheDarkBug
694a09a47d Cpu name fix (#39) 2021-03-16 08:19:57 +01:00
PK
1e72210a14 Image bug fix, added -l to help page 2021-03-15 21:04:23 -05:00
TheDarkBug
bb15873fba Added gpu info for termux. 2021-03-15 00:19:02 +01:00
Guaxinim5573
6d71999d09 Add GPUWU support 2021-03-14 18:51:25 -03:00
TheDarkBug
28c4c7a59f Added support for raspbian, fixed #36. GPU info is wip. 2021-03-14 21:42:52 +01:00
TheDarkBug
5d3d8cbcdf Merge remote-tracking branch 'origin/main' 2021-03-14 19:19:36 +01:00
TheDarkBug
f045e8ec00 Working on gpu info 2021-03-14 19:19:30 +01:00
Mikhail Koshkin
0772596787
kewnel uwu 2021-03-14 19:02:29 +03:00
Joe Todd
dbfabb4ccb
fix manjaro-arm uwu name 2021-03-14 14:58:41 +00:00
TheDarkBug
9933280db5 Renamed pop os image. 2021-03-14 15:29:36 +01:00
TheDarkBug
e7b1d4b405
Merge pull request #32 from sethnine/main
Pop os wasn't being detected automatically this is the patch
2021-03-14 15:21:11 +01:00
TheDarkBug
b727eb7c04 Finally fixed #27. 2021-03-14 15:19:49 +01:00
sethnine
20f5477a7a
Pop os wasn't being detected this is the patch 2021-03-14 23:48:23 +11:00
TheDarkBug
da1b4470a1 Possible fix for #27 2021-03-14 13:14:57 +01:00
TheDarkBug
e2b8971577
Merge pull request #30 from prettykool/main
Initial support for Guix + FreeBSD icon fix.
2021-03-14 12:48:28 +01:00
TheDarkBug
cd86f7a578 Fix for void in #31 issue. 2021-03-14 12:41:56 +01:00
PK
b0dc3a35cd FreeBSD icon fix 2021-03-13 20:01:26 -06:00
PK
d5175fc6d9 Guix pkgman support 2021-03-13 19:52:01 -06:00
TheDarkBug
a9f7bcf419 Updated makefile for security reasons (special thanks to linuxreviews.org) 2021-03-13 21:37:27 +01:00
TheDarkBug
ae2fcf8799 Fixed *file array size for package managers. 2021-03-13 08:12:05 +01:00
PK
af0f0f3db8 Modified Tux icon 2021-03-12 16:27:43 -06:00
PK
414c213302 Added Alpine + APK support 2021-03-12 16:18:29 -06:00
TheDarkBug
f88d4796f8 New ascii tux, now shell will not be displayed as a full path. 2021-03-12 11:00:37 +01:00
TheDarkBug
218ade46a8 Finally fixed ram issue (no one noticed anyway), general optimization and now completely bash-free (except pkgman() obviously) 2021-03-11 22:39:16 +01:00
TheDarkBug
9d768667bf
Merge branch 'main' into better-uwufier 2021-03-10 19:30:47 +01:00
TheDarkBug
4154159e08
Merge pull request #26 from zeGolem/cleaner-pkgmans
pkgman(): Create macro to add package counts.
2021-03-10 19:29:49 +01:00
TheDarkBug
0b3dc4448a print_info() is now a single printf 2021-03-10 19:29:16 +01:00
zegolem
d74e395127 pkgman(): Created macro to add package counts.
This makes the code cleaner and more readable, and should make it easier
to add more package managers in the future.

I think this whole function should be refactored to use more macros, or
even one big macro that makes it so that we can add a new package
manager in a single line, rather than modifying so much of the code.
2021-03-10 17:56:38 +01:00
zegolem
ad5f9fd5d0 uwu_name(): Fixed minor issue with comment. 2021-03-10 17:12:29 +01:00
zegolem
575d729cdc uwu_name(): Used macros set the name depending on the distribution
I think this is a more readable way of doing the same thing, and will
make it easier to add other distributions later down the line.
2021-03-10 17:07:08 +01:00
TheDarkBug
c53e374e15 New output for -l opt, new gentowo image and new -c command, to choose a custom image. 2021-03-10 13:04:07 +01:00
PK
7cb0369441 Mint + PopOS + Void
wq
2021-03-09 16:47:48 -06:00
TheDarkBug
358f6b17dd Little changes to android ascii logo, check if viu is installed, added new function to 'uwufie the name'. 2021-03-09 11:35:18 +01:00
TheDarkBug
6d6e0406d8 Updated uwuntu ascii logo. 2021-03-09 10:17:04 +01:00
PK
b6d492680a nyandroid icon + updated README + standard GPL 3.0 boilerplate gobbledygook 2021-03-08 23:00:41 -06:00
DJ_Level_3
bffc2df2c6 Alphabetize the ASCII logos and other bits 2021-03-08 11:54:07 -07:00
DJ_Level_3
df2e0e54a1 Add Uwuntu to uwufetch.c in branch changes 2021-03-08 11:49:12 -07:00
TheDarkBug
0725a9cbb3 Added -l option to list available distributions. 2021-03-08 15:49:50 +01:00
TheDarkBug
fd71120e34
FreeBSD + OpenBSD Support 2021-03-08 00:24:36 +01:00
P.K
8083e44037
Last minute edit
change blush color on OpenBSD mascots cheek to red
2021-03-07 16:14:00 -06:00
PK
1e5cfefe9b OpenBSD and FreeBSD (Beta) support 2021-03-07 16:03:10 -06:00
PK
81b813b53f Merge branch 'main' of https://github.com/TheDarkBug/uwufetch into main 2021-03-07 16:01:41 -06:00
PK
dd0e2f0e9c Added OpenBSD and FreeBSD (Beta) 2021-03-07 15:57:59 -06:00
TheDarkBug
a8156cb6b9 Fixed info printing for termux (still partial support) (yes, again) 2021-03-07 22:09:24 +01:00
TheDarkBug
e5d5336fcc Fixed info printing for termux (still partial support) 2021-03-07 22:08:05 +01:00
TheDarkBug
7efaabfb8b Fixed info printing with image mode, added (partial) termux support 2021-03-07 22:04:05 +01:00
Joe Todd
94660ff809
add support for manjaro arm 2021-03-07 19:17:17 +00:00
TheDarkBug
262b9ff02b Updated usage message. 2021-03-07 17:23:12 +01:00
TheDarkBug
87e048376b Merge branch 'main' of https://github.com/TheDarkBug/litefetch 2021-03-07 17:16:11 +01:00
TheDarkBug
5d9f0c5880 Changed install directory for better package-manager compatibility. 2021-03-07 17:15:42 +01:00
TheDarkBug
c9c0543caf
Merge pull request #17 from zcake3000/main
fix uwufetch break on some distro (e.g. : debian)
2021-03-07 17:05:07 +01:00
TheDarkBug
d05d45c750 Added images and IMAGES.md for credits, addedd options, use -h for a list. 2021-03-07 16:59:26 +01:00
zcake
4f15cb7208 fix uwufetch broken on debian 2021-03-07 23:39:50 +08:00
TheDarkBug
2159a9160c
Merge pull request #14 from Guaxinim5573/main
Move cursor relatively, solved #11
2021-03-07 15:32:22 +01:00
TheDarkBug
b39c1af276 Updated print_image next step is adding images in res directory 2021-03-07 15:30:32 +01:00
Guaxinim5573
1d84e6e273 Move cursor relatively 2021-03-07 10:22:10 -03:00
kugiyasan
976e8e8b36 Rewrote bash commands to shell commands 2021-03-06 21:58:19 -05:00
TheDarkBug
c5ecef7e03
Removed printf() for debugging 2021-03-07 00:57:38 +01:00
TheDarkBug
75cc6a77eb
Merge branch 'main' into main 2021-03-07 00:21:20 +01:00
TheDarkBug
7583f23929 Added usage, fixed something and added print_image() function (not yet working). 2021-03-07 00:19:03 +01:00