how tf did i broke this lol
This commit is contained in:
parent
2a0682e293
commit
d46f900c43
6
main.go
6
main.go
@ -512,7 +512,7 @@ func getTerminal() string {
|
||||
}
|
||||
|
||||
func getDE() string {
|
||||
de := os.Getenv("DESKTOP_SESSION")
|
||||
de := os.Getenv("XDG_CURRENT_DESKTOP")
|
||||
if de == "" {
|
||||
return "Unknown or w/o GUI"
|
||||
}
|
||||
@ -543,7 +543,7 @@ func main() {
|
||||
conf, _ := initConfig()
|
||||
|
||||
if len(conf.Layout) == 0 {
|
||||
conf.Layout = []string{"host","dist", "cpu", "ram", "shell", "uptime"}
|
||||
conf.Layout = []string{"host", "dist", "cpu", "ram", "shell", "uptime"}
|
||||
fmt.Println("Warning: No layout specified in config, using default")
|
||||
}
|
||||
|
||||
@ -573,7 +573,7 @@ func main() {
|
||||
for _, item := range conf.Layout {
|
||||
switch strings.ToLower(item) {
|
||||
case "host":
|
||||
stats = append(stats, Info{"host", getHostname()})
|
||||
stats = append(stats, Info{"host", getHostname()})
|
||||
case "dist":
|
||||
stats = append(stats, Info{"OS", dist})
|
||||
case "cpu":
|
||||
|
||||
Loading…
Reference in New Issue
Block a user