From c6009a402cfcef0311847ad163509402b88e88a4 Mon Sep 17 00:00:00 2001 From: echo <91651232+exhq@users.noreply.github.com> Date: Sun, 25 Sep 2022 22:20:20 +0330 Subject: [PATCH] bruh wtf 33 da hell man --- README.md | 6 +- asciiarts/alpine.txt | 8 ++ asciiarts/amogos.txt | 10 +++ asciiarts/android.txt | 8 ++ asciiarts/arch.txt | 8 ++ asciiarts/arcolinux.txt | 7 ++ asciiarts/artix.txt | 8 ++ asciiarts/asciiart.go | 28 +++++++ asciiarts/debian.txt | 8 ++ asciiarts/endeavouros.txt | 7 ++ asciiarts/fedora.txt | 8 ++ asciiarts/freebsd.txt | 8 ++ asciiarts/gentoo.txt | 8 ++ asciiarts/gnu.txt | 8 ++ asciiarts/guix.txt | 8 ++ asciiarts/ios.txt | 8 ++ asciiarts/linuxmint.txt | 7 ++ asciiarts/macos.txt | 8 ++ asciiarts/manjaro-arm.txt | 8 ++ asciiarts/manjaro.txt | 8 ++ asciiarts/openbsd.txt | 8 ++ asciiarts/opensuse-leap.txt | 8 ++ asciiarts/opensuse-tumbleweed.txt | 8 ++ asciiarts/pop.txt | 7 ++ asciiarts/raspbian.txt | 7 ++ asciiarts/slackware.txt | 8 ++ asciiarts/solus.txt | 8 ++ asciiarts/ubuntu.txt | 7 ++ asciiarts/unknown.txt | 7 ++ asciiarts/void.txt | 8 ++ asciiarts/xerolinux.txt | 8 ++ utils/asciiarts.go | 127 +++++++++++++++++++++++++++--- utils/printing.go | 9 ++- 33 files changed, 380 insertions(+), 17 deletions(-) create mode 100644 asciiarts/alpine.txt create mode 100644 asciiarts/amogos.txt create mode 100644 asciiarts/android.txt create mode 100644 asciiarts/arch.txt create mode 100644 asciiarts/arcolinux.txt create mode 100644 asciiarts/artix.txt create mode 100644 asciiarts/asciiart.go create mode 100644 asciiarts/debian.txt create mode 100644 asciiarts/endeavouros.txt create mode 100644 asciiarts/fedora.txt create mode 100644 asciiarts/freebsd.txt create mode 100644 asciiarts/gentoo.txt create mode 100644 asciiarts/gnu.txt create mode 100644 asciiarts/guix.txt create mode 100644 asciiarts/ios.txt create mode 100644 asciiarts/linuxmint.txt create mode 100644 asciiarts/macos.txt create mode 100644 asciiarts/manjaro-arm.txt create mode 100644 asciiarts/manjaro.txt create mode 100644 asciiarts/openbsd.txt create mode 100644 asciiarts/opensuse-leap.txt create mode 100644 asciiarts/opensuse-tumbleweed.txt create mode 100644 asciiarts/pop.txt create mode 100644 asciiarts/raspbian.txt create mode 100644 asciiarts/slackware.txt create mode 100644 asciiarts/solus.txt create mode 100644 asciiarts/ubuntu.txt create mode 100644 asciiarts/unknown.txt create mode 100644 asciiarts/void.txt create mode 100644 asciiarts/xerolinux.txt diff --git a/README.md b/README.md index 2779440..3d99a81 100644 --- a/README.md +++ b/README.md @@ -17,4 +17,8 @@ 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. -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 \ No newline at end of file +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. \ No newline at end of file diff --git a/asciiarts/alpine.txt b/asciiarts/alpine.txt new file mode 100644 index 0000000..41409b6 --- /dev/null +++ b/asciiarts/alpine.txt @@ -0,0 +1,8 @@ + + {BLUE}. .___. + / \/ \ / + /OωO\ɛU\/ __ + / \ \__/ \ +/ \ \ + + diff --git a/asciiarts/amogos.txt b/asciiarts/amogos.txt new file mode 100644 index 0000000..df0a5cb --- /dev/null +++ b/asciiarts/amogos.txt @@ -0,0 +1,10 @@ + ▄▄▄▄▄▄▄ + █ ▄▄▄▄▄ █ + ▐ █▄▄▄█ █ + ▌ ▐ + ▐ ▐ + █ ▐ + ▐ ▐▀▀▀▀█ ▐ +▐▀▀▀ ▐ ▐ ▐ + ▀▀▀▀▀▀ █▀▀▀ █ + ▀▀▀▀▀▀ diff --git a/asciiarts/android.txt b/asciiarts/android.txt new file mode 100644 index 0000000..6045cfc --- /dev/null +++ b/asciiarts/android.txt @@ -0,0 +1,8 @@ + + {GREEN}\ _------_ / + / \ + | {RED}~ {GREEN}> ω < {RED}~ {GREEN}| + ------------ + + + diff --git a/asciiarts/arch.txt b/asciiarts/arch.txt new file mode 100644 index 0000000..d4e77f8 --- /dev/null +++ b/asciiarts/arch.txt @@ -0,0 +1,8 @@ +{BLUE} /\ + / \ + /\ \ + / > ω <\ + / __ \ + / __| |__-\ + /_-'' ''-_\ + diff --git a/asciiarts/arcolinux.txt b/asciiarts/arcolinux.txt new file mode 100644 index 0000000..307c35e --- /dev/null +++ b/asciiarts/arcolinux.txt @@ -0,0 +1,7 @@ +{BLUE} /\ + / \ + / \ + /{WHITE}O vv O{BLUE}\ + / / \ \ + / / __\ \ + /__/ `\___\ \ No newline at end of file diff --git a/asciiarts/artix.txt b/asciiarts/artix.txt new file mode 100644 index 0000000..b363ab3 --- /dev/null +++ b/asciiarts/artix.txt @@ -0,0 +1,8 @@ +{BLUE} /\ + / \ + /`'.,\ + /• w • \ + / ,`\ + / ,.'`. \ + /.,'` `'.\ + \ No newline at end of file diff --git a/asciiarts/asciiart.go b/asciiarts/asciiart.go new file mode 100644 index 0000000..b76e9df --- /dev/null +++ b/asciiarts/asciiart.go @@ -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 +} diff --git a/asciiarts/debian.txt b/asciiarts/debian.txt new file mode 100644 index 0000000..54a85ea --- /dev/null +++ b/asciiarts/debian.txt @@ -0,0 +1,8 @@ +{RED} ______ + / ___ \ + | / OωO | + | \____- + -_ + --_\ + + \ No newline at end of file diff --git a/asciiarts/endeavouros.txt b/asciiarts/endeavouros.txt new file mode 100644 index 0000000..003c84f --- /dev/null +++ b/asciiarts/endeavouros.txt @@ -0,0 +1,7 @@ +{MAGENTA} /\ + {RED}/{MAGENTA}/ \{BLUE}\ + {RED}/{MAGENTA}/>ω<\{BLUE}\ + {RED}/{MAGENTA}/ \ {BLUE}\ + {RED}/ {MAGENTA}/ _) {BLUE}) + {RED}/_{MAGENTA}/___-- {BLUE}___- + /____--- diff --git a/asciiarts/fedora.txt b/asciiarts/fedora.txt new file mode 100644 index 0000000..f38e0e2 --- /dev/null +++ b/asciiarts/fedora.txt @@ -0,0 +1,8 @@ + {BLUE}_____ + / __){CYAN}\ + {WHITE}> {BLUE}| / {WHITE}<{CYAN}\ \ + __{BLUE}_| {CYAN}ω{BLUE}|_{CYAN}_/ / + / {BLUE}(_ _){CYAN}_/ + / / {BLUE}| | + {CYAN}\ \{BLUE}__/ | + {CYAN}\{BLUE}(_____/ diff --git a/asciiarts/freebsd.txt b/asciiarts/freebsd.txt new file mode 100644 index 0000000..3b44a43 --- /dev/null +++ b/asciiarts/freebsd.txt @@ -0,0 +1,8 @@ + + {RED}/\,-'''''-,/\ + \_) (_/ + | \ / | + | O ω O | + ; ; + '-_____-' + diff --git a/asciiarts/gentoo.txt b/asciiarts/gentoo.txt new file mode 100644 index 0000000..7924ef4 --- /dev/null +++ b/asciiarts/gentoo.txt @@ -0,0 +1,8 @@ + {MAGENTA}_-----_ + ( \\ + \\ OωO \\ +{WHITE} \\ ) + / _/ + ( _- + \\____- + diff --git a/asciiarts/gnu.txt b/asciiarts/gnu.txt new file mode 100644 index 0000000..eea2a71 --- /dev/null +++ b/asciiarts/gnu.txt @@ -0,0 +1,8 @@ + + + {WHITE},= {YELLOW},-_-. {WHITE}=. + ((_/{YELLOW}){WHITE}U U{YELLOW}({WHITE}\_)) + `-'{YELLOW}(. .){WHITE}`-' + {YELLOW}\{WHITE}w{YELLOW}/ + ¯ + diff --git a/asciiarts/guix.txt b/asciiarts/guix.txt new file mode 100644 index 0000000..eea2a71 --- /dev/null +++ b/asciiarts/guix.txt @@ -0,0 +1,8 @@ + + + {WHITE},= {YELLOW},-_-. {WHITE}=. + ((_/{YELLOW}){WHITE}U U{YELLOW}({WHITE}\_)) + `-'{YELLOW}(. .){WHITE}`-' + {YELLOW}\{WHITE}w{YELLOW}/ + ¯ + diff --git a/asciiarts/ios.txt b/asciiarts/ios.txt new file mode 100644 index 0000000..552873e --- /dev/null +++ b/asciiarts/ios.txt @@ -0,0 +1,8 @@ + {GREEN} .:` + .--``--. +{YELLOW} ww OωO w +{RED} w w +{PINK} w w + +{BLUE} www_-_www + diff --git a/asciiarts/linuxmint.txt b/asciiarts/linuxmint.txt new file mode 100644 index 0000000..7c26c13 --- /dev/null +++ b/asciiarts/linuxmint.txt @@ -0,0 +1,7 @@ +{GREEN} __/\____/\. + |{WHITE}.--. {GREEN}| + {WHITE}, {GREEN}¯| {WHITE}| UωU| {GREEN}| + {WHITE}|| {GREEN}| {WHITE}| | {GREEN}| + {WHITE} | {GREEN}| {WHITE}---- {GREEN}| + {WHITE} --{GREEN}'--------' + diff --git a/asciiarts/macos.txt b/asciiarts/macos.txt new file mode 100644 index 0000000..d8e1308 --- /dev/null +++ b/asciiarts/macos.txt @@ -0,0 +1,8 @@ + {GREEN} .:` + .--``--. +{YELLOW} ww OωO w +{RED} w w +{PINK} w w +{MAGENTA} w w +{BLUE} www_-_www + diff --git a/asciiarts/manjaro-arm.txt b/asciiarts/manjaro-arm.txt new file mode 100644 index 0000000..a6c34cf --- /dev/null +++ b/asciiarts/manjaro-arm.txt @@ -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} diff --git a/asciiarts/manjaro.txt b/asciiarts/manjaro.txt new file mode 100644 index 0000000..a6c34cf --- /dev/null +++ b/asciiarts/manjaro.txt @@ -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} diff --git a/asciiarts/openbsd.txt b/asciiarts/openbsd.txt new file mode 100644 index 0000000..0aaf295 --- /dev/null +++ b/asciiarts/openbsd.txt @@ -0,0 +1,8 @@ + + {YELLOW} ______ + \- -/ {RED}♥ +{YELLOW}\_/ \ +| {WHITE}> < {YELLOW}| +|_ < {LPINK}// {WHITE}ω {LPINK}// +{YELLOW}/ \ / + /-________-\ diff --git a/asciiarts/opensuse-leap.txt b/asciiarts/opensuse-leap.txt new file mode 100644 index 0000000..57bf9bf --- /dev/null +++ b/asciiarts/opensuse-leap.txt @@ -0,0 +1,8 @@ + + + {GREEN}|\----/| + _ / {WHITE}O O{GREEN}\ + __. ω / + '----' + + diff --git a/asciiarts/opensuse-tumbleweed.txt b/asciiarts/opensuse-tumbleweed.txt new file mode 100644 index 0000000..57bf9bf --- /dev/null +++ b/asciiarts/opensuse-tumbleweed.txt @@ -0,0 +1,8 @@ + + + {GREEN}|\----/| + _ / {WHITE}O O{GREEN}\ + __. ω / + '----' + + diff --git a/asciiarts/pop.txt b/asciiarts/pop.txt new file mode 100644 index 0000000..fef44af --- /dev/null +++ b/asciiarts/pop.txt @@ -0,0 +1,7 @@ +{BLUE} |\.-----./| + |/ \| + | > < | + | {LPINK}~ {WHITE}P! {LPINK}~ {BLUE}| +_ ---\ ω / + \_/ '-----' + diff --git a/asciiarts/raspbian.txt b/asciiarts/raspbian.txt new file mode 100644 index 0000000..2bec710 --- /dev/null +++ b/asciiarts/raspbian.txt @@ -0,0 +1,7 @@ +{GREEN} __ __ + (_\)(/_) + {RED}(>(__)<) + (_(_)(_)_) + (_(__)_) + (__) + diff --git a/asciiarts/slackware.txt b/asciiarts/slackware.txt new file mode 100644 index 0000000..78cd4f5 --- /dev/null +++ b/asciiarts/slackware.txt @@ -0,0 +1,8 @@ + + {MAGENTA}|\.-----./| + |/ \| + | > < | + | {LPINK}~ {WHITE}S {LPINK}~ {MAGENTA}| +_ ---\ ω / + \_/ '-----' + diff --git a/asciiarts/solus.txt b/asciiarts/solus.txt new file mode 100644 index 0000000..8f6b540 --- /dev/null +++ b/asciiarts/solus.txt @@ -0,0 +1,8 @@ + + {WHITE}|\.-----./| + | \ / | + |/ > <\ | + |{BLUE}_{LPINK}~{BLUE}_____{LPINK}~{WHITE}\| +{BLUE}_ ---\ {WHITE}ω {BLUE}/ + \_/ '-----' + diff --git a/asciiarts/ubuntu.txt b/asciiarts/ubuntu.txt new file mode 100644 index 0000000..7ed4cb8 --- /dev/null +++ b/asciiarts/ubuntu.txt @@ -0,0 +1,7 @@ +{LPINK} _ + {PINK}◣{LPINK}__(_){PINK}◢{LPINK} + _/ --- \ + (_) |>ω<| | + \ --- _/ + {PINK}C__/{LPINK}---(_) + diff --git a/asciiarts/unknown.txt b/asciiarts/unknown.txt new file mode 100644 index 0000000..6c2e5d6 --- /dev/null +++ b/asciiarts/unknown.txt @@ -0,0 +1,7 @@ +{WHITE} ._.--._. + \|>{YELLOW}_{WHITE}< |/ + |{YELLOW}:_/{WHITE} | + // \ \ ? + (| | ) / + {YELLOW}/'\_ _/`\{WHITE}- + {YELLOW}\___)=(___/ diff --git a/asciiarts/void.txt b/asciiarts/void.txt new file mode 100644 index 0000000..56e7b7c --- /dev/null +++ b/asciiarts/void.txt @@ -0,0 +1,8 @@ + + {GREEN} |\_____/| + _\____ | + | \ \ | + | | {WHITE}ÒωÓ {GREEN}| | , + | \_____\_|-, | + -_______\ \_/ + diff --git a/asciiarts/xerolinux.txt b/asciiarts/xerolinux.txt new file mode 100644 index 0000000..b309046 --- /dev/null +++ b/asciiarts/xerolinux.txt @@ -0,0 +1,8 @@ +{BLUE} /\ +______ / \______ + /\ /\ + / || \ +____/__/__\__\___ + / __| |__-\ + /_-'' ''-_\ + diff --git a/utils/asciiarts.go b/utils/asciiarts.go index 1f0af23..1f0fd79 100644 --- a/utils/asciiarts.go +++ b/utils/asciiarts.go @@ -1,25 +1,128 @@ package utils func Getascii(name string) string { - none := `!!!!!!!!!!!!!!! -!!!!!!!!!!!!!!! -!!!!noascii!!!! -!!!!!!!!!!!!!!! -!!!!!!!!!!!!!!! ` - arch := ` /\ + + switch name { + case "alphine": + return `. .___. + / \/ \ / + /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 "arch": - return arch +/_-'' ''-_\ + ` + case "linuxmint": + return ` /\______/\. + |.--. | + , ¯| | UωU| | +|| | | | | + | | ---- | + --'--------'` default: - return none + return `!!!!!!!!!!!!!!! +!!!!!!!!!!!!!!! +!!!!noascii!!!! +!!!!!!!!!!!!!!! +!!!!!!!!!!!!!!! ` } } diff --git a/utils/printing.go b/utils/printing.go index c4393db..8bb6dd7 100644 --- a/utils/printing.go +++ b/utils/printing.go @@ -9,6 +9,7 @@ import ( "strconv" "strings" + "github.com/exhq/neowofetch/asciiarts" "github.com/exhq/neowofetch/data" "github.com/exhq/neowofetch/images" ) @@ -58,9 +59,9 @@ func Initcolor() { func CutePrintInit() { dist := data.GetDistroVariable("ID") - logo := Getascii(dist) + logo := asciiarts.GetAscii(dist) if asciiforced { - logo = Getascii(forceddistro) + logo = asciiarts.GetAscii(forceddistro) } if noascii { logo = "" @@ -76,9 +77,9 @@ func CutePrintInit() { logoLines = strings.Split(logo, "\n") logoWidth = 0 for _, v := range logoLines { - lineLength := len([]rune(v)) + lineLength := len([]rune(v)) + 2 if lineLength > logoWidth { - logoWidth = lineLength + 2 + logoWidth = lineLength } } }