holy fucking shit fr another neowofetch ubdate????!?!?!?!/! i fucking love neowofetch its the best fucking anime bro frfr bruh fr
This commit is contained in:
parent
7c290dd820
commit
f206dfc0bf
5 changed files with 42 additions and 19 deletions
0
asciiart/README
Normal file
0
asciiart/README
Normal file
32
asciiart/asciiart.go
Normal file
32
asciiart/asciiart.go
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
package asciiart
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Getascii(name string) []string {
|
||||||
|
none := `!!!!!!!!!!!!!!!
|
||||||
|
!!!!!!!!!!!!!!!
|
||||||
|
!!!!noascii!!!!
|
||||||
|
!!!!!!!!!!!!!!!
|
||||||
|
!!!!!!!!!!!!!!!
|
||||||
|
`
|
||||||
|
arch := ` /\
|
||||||
|
/ \
|
||||||
|
/\ \
|
||||||
|
/ > ω <\
|
||||||
|
/ __ \
|
||||||
|
/ __| |__-\
|
||||||
|
/_-'' ''-_\
|
||||||
|
`
|
||||||
|
|
||||||
|
switch name {
|
||||||
|
case "Arch Linux":
|
||||||
|
return strings.Split(arch, "\n")
|
||||||
|
|
||||||
|
default:
|
||||||
|
return strings.Split(none, "\n")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
4
go.mod
4
go.mod
|
@ -1,9 +1,9 @@
|
||||||
module color
|
module neowofetch
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/fatih/color v1.13.0 // indirect
|
github.com/fatih/color v1.13.0
|
||||||
github.com/mattn/go-colorable v0.1.9 // indirect
|
github.com/mattn/go-colorable v0.1.9 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.14 // indirect
|
github.com/mattn/go-isatty v0.0.14 // indirect
|
||||||
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
|
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
|
||||||
|
|
20
main.go
20
main.go
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"neowofetch/asciiart"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
@ -13,15 +14,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var isuwuified bool = true
|
var isuwuified bool = true
|
||||||
var arch = ` /\
|
|
||||||
/ \
|
|
||||||
/\ \
|
|
||||||
/ > ω <\
|
|
||||||
/ __ \
|
|
||||||
/ __| |__-\
|
|
||||||
/_-'' ''-_\
|
|
||||||
`
|
|
||||||
|
|
||||||
var linearch []string
|
var linearch []string
|
||||||
var aa int
|
var aa int
|
||||||
|
|
||||||
|
@ -42,7 +34,7 @@ func getConfigFile() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func initascii() {
|
func initascii() {
|
||||||
linearch = strings.Split(arch, "\n")
|
linearch = asciiart.Getascii(getDistro())
|
||||||
aa = 0
|
aa = 0
|
||||||
print(linearch[aa])
|
print(linearch[aa])
|
||||||
aa = aa + 1
|
aa = aa + 1
|
||||||
|
@ -106,6 +98,10 @@ func handlePrint(action, colour string, rest string) {
|
||||||
Cprint(colour, formatTime(no), false)
|
Cprint(colour, formatTime(no), false)
|
||||||
case "hostname":
|
case "hostname":
|
||||||
Cprint(colour, getHostname(), true)
|
Cprint(colour, getHostname(), true)
|
||||||
|
case "GPU":
|
||||||
|
Cprint(colour, getGPU(), true)
|
||||||
|
case "shell":
|
||||||
|
Cprint(colour, getShell(), true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if action == "infoln" {
|
if action == "infoln" {
|
||||||
|
@ -164,10 +160,10 @@ func uwuify(message string) string {
|
||||||
|
|
||||||
for _, word := range sentence {
|
for _, word := range sentence {
|
||||||
if !strings.Contains(strings.ToLower(word), "uwu") {
|
if !strings.Contains(strings.ToLower(word), "uwu") {
|
||||||
word = strings.Replace(word, "u", "UwU", 1)
|
word = strings.Replace(word, "u", "UwU", -1)
|
||||||
|
|
||||||
if strings.Contains(strings.ToLower(word), "owo") {
|
if strings.Contains(strings.ToLower(word), "owo") {
|
||||||
word = strings.Replace(word, "o", "OwO", 1)
|
word = strings.Replace(word, "o", "OwO", -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
package subdirectory;
|
|
||||||
|
|
||||||
|
|
||||||
func TestFun() {
|
|
||||||
}
|
|
Loading…
Reference in a new issue