RGB more like RBG
This commit is contained in:
parent
ce4285e572
commit
de1e87286b
3 changed files with 7 additions and 4 deletions
|
@ -41,7 +41,7 @@ examples:
|
||||||
`info bold|yellow|nouwu GPU` this would print out your GPU in a bold yellow color without uwuifying. NOTICE: not all fonts support bold/italic
|
`info bold|yellow|nouwu GPU` this would print out your GPU in a bold yellow color without uwuifying. NOTICE: not all fonts support bold/italic
|
||||||
|
|
||||||
### colors file
|
### colors file
|
||||||
|
|
||||||
this file is pretty self explainatory, you can define your own colors in RGB which you can later use in your conf file
|
this file is pretty self explainatory, you can define your own colors in RGB which you can later use in your conf file
|
||||||
example:
|
example:
|
||||||
blue 0 0 255
|
blue 0 0 255
|
||||||
|
|
|
@ -87,9 +87,9 @@ func GetMemory(used bool) string {
|
||||||
mem_used := mem_total - mem_free
|
mem_used := mem_total - mem_free
|
||||||
//memory := fmt.Sprintf("%d/%d", mem_used/1024, mem_total/1024)
|
//memory := fmt.Sprintf("%d/%d", mem_used/1024, mem_total/1024)
|
||||||
if used {
|
if used {
|
||||||
return strconv.Itoa(mem_used / 1024)
|
return formatmem(mem_used / 1024)
|
||||||
} else {
|
} else {
|
||||||
return strconv.Itoa(mem_total / 1024)
|
return formatmem(mem_total / 1024)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
func GetHome() string {
|
func GetHome() string {
|
||||||
|
@ -142,6 +142,9 @@ func GetTerminal() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
func formatmem(input int) string {
|
||||||
|
return strconv.Itoa(input) + "MiB"
|
||||||
|
}
|
||||||
func GetShell() string {
|
func GetShell() string {
|
||||||
return os.Getenv("SHELL")
|
return os.Getenv("SHELL")
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ func Initcolor() {
|
||||||
if os.IsNotExist(existcolorconf) {
|
if os.IsNotExist(existcolorconf) {
|
||||||
println("color was not found. a default config file has been generated in '~/.config/neowofetch/colors'. rerun the program")
|
println("color was not found. a default config file has been generated in '~/.config/neowofetch/colors'. rerun the program")
|
||||||
f, _ := os.Create(colorconf)
|
f, _ := os.Create(colorconf)
|
||||||
_, _ = f.WriteString("red 255 0 0 \nblue 0 255 0\nred 0 0 255\nwhite 255 255 255")
|
_, _ = f.WriteString("red 255 0 0 \ngreen 0 255 0\nblue 0 0 255\nwhite 255 255 255")
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue