ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
749 stars 52 forks source link

Uwu'fy kernel name #103

Closed SupinePandora43 closed 3 years ago

SupinePandora43 commented 3 years ago

image Linux 5.10.42-1-MANJARO to Linux 5.10.42-1-MYANJAWO

ad-oliviero commented 3 years ago

In uwufetch the owos name is fully replaced, uwufing the kewnel version is more complex: it is not only one string which is common for every system, it is made of 'Linux' + linux version number + other things depending on what distro are you on and if you are using a custom kernel.

There are many solutions: "brute force" it by including every possible version combo (too difficult), change only one part of the string if it is recognized (i don't know how to do it), using an external library to do that.

If you would like to implement something like this, pull requests are welcome.

ad-oliviero commented 3 years ago

Closed by error

LukeHuckman commented 3 years ago

This would work if the system is using the distro-provided kernel I guess since each distro has its own kernel version convention. We can just use that to determine which part of the version info to uwu-fy. As for custom kernels, I guess we can add additional cases for popular third party kernels e.g. Liquorix, Xanmod, etc.

ad-oliviero commented 3 years ago

Yes, we could do it aside the distro detection, and if a custom kernel is detected, it will use its (uwufied) name.