Skip to content

Commit aca36ab

Browse files
committed
use env to show packages
1 parent 0620a71 commit aca36ab

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

main/bai.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"baturax/mods"
55
"fmt"
66
"math/rand"
7+
"os"
78
)
89

910
func main() {
@@ -48,14 +49,21 @@ func colors() []string {
4849
}
4950

5051
func icons() []string {
51-
return []string{
52+
53+
lol := []string{
5254
mods.GetUser(),
5355
mods.GetSystem(),
5456
mods.GetKernel(),
5557
mods.GetMem(),
5658
mods.GetUptime(),
5759
mods.GetShell(),
5860
mods.GetDesktop(),
59-
mods.GetPackages(),
6061
}
62+
63+
if os.Getenv("SHOW_PACKAGES") == "yes" {
64+
lol = append(lol, mods.GetPackages())
65+
}
66+
67+
return lol
68+
6169
}

0 commit comments

Comments
 (0)