bruh wtf 33 da hell man

This commit is contained in:
echo 2022-09-25 22:20:20 +03:30
parent c6577fe71f
commit c6009a402c
33 changed files with 380 additions and 17 deletions

View file

@ -18,3 +18,7 @@ The information by default is displayed alongside your operating system's uwuifi
You can further configure NeOwOfetch to your horrible taste. Through the use of command-line flags and idfk i havent implemented it yet. You can further configure NeOwOfetch to your horrible taste. Through the use of command-line flags and idfk i havent implemented it yet.
NeOwOfetch supports almost like 2 different operating systems. From Linux to Linux. If your favourite operating system is unsupported i dont give a shit, ill get to it when i get to it. for now its just arch and ubuntu NeOwOfetch supports almost like 2 different operating systems. From Linux to Linux. If your favourite operating system is unsupported i dont give a shit, ill get to it when i get to it. for now its just arch and ubuntu
jokes aside, the asciiarts are from uwufetch, all credits go to them.

8
asciiarts/alpine.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE}. .___.
/ \/ \ /
/OωO\ɛU\/ __
/ \ \__/ \
/ \ \

10
asciiarts/amogos.txt Normal file
View file

@ -0,0 +1,10 @@
▄▄▄▄▄▄▄
█ ▄▄▄▄▄ █
▐ █▄▄▄█ █
▌ ▐
▐ ▐
█ ▐
▐ ▐▀▀▀▀█ ▐
▐▀▀▀ ▐ ▐ ▐
▀▀▀▀▀▀ █▀▀▀ █
▀▀▀▀▀▀

8
asciiarts/android.txt Normal file
View file

@ -0,0 +1,8 @@
{GREEN}\ _------_ /
/ \
| {RED}~ {GREEN}> ω < {RED}~ {GREEN}|
------------

8
asciiarts/arch.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE} /\
/ \
/\ \
/ > ω <\
/ __ \
/ __| |__-\
/_-'' ''-_\

7
asciiarts/arcolinux.txt Normal file
View file

@ -0,0 +1,7 @@
{BLUE} /\
/ \
/ \
/{WHITE}O vv O{BLUE}\
/ / \ \
/ / __\ \
/__/ `\___\

8
asciiarts/artix.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE} /\
/ \
/`'.,\
/• w • \
/ ,`\
/ ,.'`. \
/.,'` `'.\

28
asciiarts/asciiart.go Normal file
View file

@ -0,0 +1,28 @@
package asciiarts
import (
_ "embed"
"strings"
)
//go:embed alpine.txt
var Alpine string
//go:embed unknown.txt
var unknown string
func GetAsciiInternal(distroID string) string {
switch distroID {
case "Alpine":
return Alpine
default:
return unknown
}
}
func GetAscii(distroID string) string {
ascii := GetAsciiInternal(distroID)
ascii = strings.ReplaceAll(ascii, "{WHITE}", "")
ascii = strings.ReplaceAll(ascii, "{YELLOW}", "")
ascii = strings.ReplaceAll(ascii, "{BLUE}", "")
return ascii
}

8
asciiarts/debian.txt Normal file
View file

@ -0,0 +1,8 @@
{RED} ______
/ ___ \
| / OωO |
| \____-
-_
--_\

View file

@ -0,0 +1,7 @@
{MAGENTA} /\
{RED}/{MAGENTA}/ \{BLUE}\
{RED}/{MAGENTA}/>ω<\{BLUE}\
{RED}/{MAGENTA}/ \ {BLUE}\
{RED}/ {MAGENTA}/ _) {BLUE})
{RED}/_{MAGENTA}/___-- {BLUE}___-
/____---

8
asciiarts/fedora.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE}_____
/ __){CYAN}\
{WHITE}> {BLUE}| / {WHITE}<{CYAN}\ \
__{BLUE}_| {CYAN}ω{BLUE}|_{CYAN}_/ /
/ {BLUE}(_ _){CYAN}_/
/ / {BLUE}| |
{CYAN}\ \{BLUE}__/ |
{CYAN}\{BLUE}(_____/

8
asciiarts/freebsd.txt Normal file
View file

@ -0,0 +1,8 @@
{RED}/\,-'''''-,/\
\_) (_/
| \ / |
| O ω O |
; ;
'-_____-'

8
asciiarts/gentoo.txt Normal file
View file

@ -0,0 +1,8 @@
{MAGENTA}_-----_
( \\
\\ OωO \\
{WHITE} \\ )
/ _/
( _-
\\____-

8
asciiarts/gnu.txt Normal file
View file

@ -0,0 +1,8 @@
{WHITE},= {YELLOW},-_-. {WHITE}=.
((_/{YELLOW}){WHITE}U U{YELLOW}({WHITE}\_))
`-'{YELLOW}(. .){WHITE}`-'
{YELLOW}\{WHITE}w{YELLOW}/
¯

8
asciiarts/guix.txt Normal file
View file

@ -0,0 +1,8 @@
{WHITE},= {YELLOW},-_-. {WHITE}=.
((_/{YELLOW}){WHITE}U U{YELLOW}({WHITE}\_))
`-'{YELLOW}(. .){WHITE}`-'
{YELLOW}\{WHITE}w{YELLOW}/
¯

8
asciiarts/ios.txt Normal file
View file

@ -0,0 +1,8 @@
{GREEN} .:`
.--``--.
{YELLOW} ww OωO w
{RED} w w
{PINK} w w
{BLUE} www_-_www

7
asciiarts/linuxmint.txt Normal file
View file

@ -0,0 +1,7 @@
{GREEN} __/\____/\.
|{WHITE}.--. {GREEN}|
{WHITE}, {GREEN}¯| {WHITE}| UωU| {GREEN}|
{WHITE}|| {GREEN}| {WHITE}| | {GREEN}|
{WHITE} | {GREEN}| {WHITE}---- {GREEN}|
{WHITE} --{GREEN}'--------'

8
asciiarts/macos.txt Normal file
View file

@ -0,0 +1,8 @@
{GREEN} .:`
.--``--.
{YELLOW} ww OωO w
{RED} w w
{PINK} w w
{MAGENTA} w w
{BLUE} www_-_www

View file

@ -0,0 +1,8 @@
△ △ ◠◠◠◠
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL}{BACKGROUND_GREEN}{BLACK} > ω < {NORMAL}{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}

8
asciiarts/manjaro.txt Normal file
View file

@ -0,0 +1,8 @@
△ △ ◠◠◠◠
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL}{BACKGROUND_GREEN}{BLACK} > ω < {NORMAL}{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}
{BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL} {BACKGROUND_GREEN} {NORMAL}

8
asciiarts/openbsd.txt Normal file
View file

@ -0,0 +1,8 @@
{YELLOW} ______
\- -/ {RED}♥
{YELLOW}\_/ \
| {WHITE}> < {YELLOW}|
|_ < {LPINK}// {WHITE}ω {LPINK}//
{YELLOW}/ \ /
/-________-\

View file

@ -0,0 +1,8 @@
{GREEN}|\----/|
_ / {WHITE}O O{GREEN}\
__. ω /
'----'

View file

@ -0,0 +1,8 @@
{GREEN}|\----/|
_ / {WHITE}O O{GREEN}\
__. ω /
'----'

7
asciiarts/pop.txt Normal file
View file

@ -0,0 +1,7 @@
{BLUE} |\.-----./|
|/ \|
| > < |
| {LPINK}~ {WHITE}P! {LPINK}~ {BLUE}|
_ ---\ ω /
\_/ '-----'

7
asciiarts/raspbian.txt Normal file
View file

@ -0,0 +1,7 @@
{GREEN} __ __
(_\)(/_)
{RED}(>(__)<)
(_(_)(_)_)
(_(__)_)
(__)

8
asciiarts/slackware.txt Normal file
View file

@ -0,0 +1,8 @@
{MAGENTA}|\.-----./|
|/ \|
| > < |
| {LPINK}~ {WHITE}S {LPINK}~ {MAGENTA}|
_ ---\ ω /
\_/ '-----'

8
asciiarts/solus.txt Normal file
View file

@ -0,0 +1,8 @@
{WHITE}|\.-----./|
| \ / |
|/ > <\ |
|{BLUE}_{LPINK}~{BLUE}_____{LPINK}~{WHITE}\|
{BLUE}_ ---\ {WHITE}ω {BLUE}/
\_/ '-----'

7
asciiarts/ubuntu.txt Normal file
View file

@ -0,0 +1,7 @@
{LPINK} _
{PINK}◣{LPINK}__(_){PINK}◢{LPINK}
_/ --- \
(_) |>ω<| |
\ --- _/
{PINK}C__/{LPINK}---(_)

7
asciiarts/unknown.txt Normal file
View file

@ -0,0 +1,7 @@
{WHITE} ._.--._.
\|>{YELLOW}_{WHITE}< |/
|{YELLOW}:_/{WHITE} |
// \ \ ?
(| | ) /
{YELLOW}/'\_ _/`\{WHITE}-
{YELLOW}\___)=(___/

8
asciiarts/void.txt Normal file
View file

@ -0,0 +1,8 @@
{GREEN} |\_____/|
_\____ |
| \ \ |
| | {WHITE}ÒωÓ {GREEN}| | ,
| \_____\_|-, |
-_______\ \_/

8
asciiarts/xerolinux.txt Normal file
View file

@ -0,0 +1,8 @@
{BLUE} /\
______ / \______
/\ /\
/ || \
____/__/__\__\___
/ __| |__-\
/_-'' ''-_\

View file

@ -1,25 +1,128 @@
package utils package utils
func Getascii(name string) string { func Getascii(name string) string {
none := `!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!! switch name {
!!!!noascii!!!! case "alphine":
!!!!!!!!!!!!!!! return `. .___.
!!!!!!!!!!!!!!! ` / \/ \ /
arch := ` /\ /OωO\ɛU\/ __
/ \ \__/ \
/ \ \`
case "amogos":
return `
`
case "android":
return ` \ _------_ /
/ \
| ~ > ω < ~ |
------------
`
case "arcolinux":
return ` /\
/ \
/ \
/O vv O\
/ / \ \
/ / __\ \
/__/ \___\`
case "artix":
return ` /\
/ \
/''.,\
/ w \
/ ,'\
/ ,.''. \
/.,'' ''.\
`
case "debian":
return ` ______
/ ___ \
| / OωO |
| \____-
-_
--_\
`
case "endeavouros":
return ` /\
// \\
//>ω<\\
// \ \
/ / _) )
/_/___-- ___-
/____---`
case "fedora":
return ` _____
/ __)\
> | / <\ \
___| ω|__/ /
/ (_ _)_/
/ / | |
\ \__/ |
\(_____/
`
case "freebsd":
return `
/\,-'''''-,/\
\_) (_/
| \ / |
| O ω O |
; ;
'-_____-'
`
case "gentoo":
return ` _-----_
( \\
\\ OωO \\
\\ )
/ _/
( _-
\\____-
`
case "guix":
return ` ,= ,-_-. =.
((_/)U U(\_))
'-'(. .)'-'
\w/
¯`
case "ios":
return ` WHY THE FUCK
ARE YOU USING IOS
PIECE OF FUCKING SHIT`
case "arch":
return ` /\
/ \ / \
/\ \ /\ \
/ > ω <\ / > ω <\
/ __ \ / __ \
/ __| |__-\ / __| |__-\
/_-'' ''-_\ ` /_-'' ''-_\
`
switch name { case "linuxmint":
case "arch": return ` /\______/\.
return arch |.--. |
, ¯| | UωU| |
|| | | | |
| | ---- |
--'--------'`
default: default:
return none return `!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!
!!!!noascii!!!!
!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!! `
} }
} }

View file

@ -9,6 +9,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/exhq/neowofetch/asciiarts"
"github.com/exhq/neowofetch/data" "github.com/exhq/neowofetch/data"
"github.com/exhq/neowofetch/images" "github.com/exhq/neowofetch/images"
) )
@ -58,9 +59,9 @@ func Initcolor() {
func CutePrintInit() { func CutePrintInit() {
dist := data.GetDistroVariable("ID") dist := data.GetDistroVariable("ID")
logo := Getascii(dist) logo := asciiarts.GetAscii(dist)
if asciiforced { if asciiforced {
logo = Getascii(forceddistro) logo = asciiarts.GetAscii(forceddistro)
} }
if noascii { if noascii {
logo = "" logo = ""
@ -76,9 +77,9 @@ func CutePrintInit() {
logoLines = strings.Split(logo, "\n") logoLines = strings.Split(logo, "\n")
logoWidth = 0 logoWidth = 0
for _, v := range logoLines { for _, v := range logoLines {
lineLength := len([]rune(v)) lineLength := len([]rune(v)) + 2
if lineLength > logoWidth { if lineLength > logoWidth {
logoWidth = lineLength + 2 logoWidth = lineLength
} }
} }
} }