summaryrefslogtreecommitdiff
path: root/main.go
blob: 37f1bb2f7d1132002d919e921b53275f5f941f7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main

/*
	Author: Jackson Taylor
	Date: 3/28/2020
	Description: This is Jackson's Awesome Status Bar for suckless', very nice, dwm.
*/

import (
	"fmt"
)

// Module is the interface for you to extend what your bar does.
type Module interface {
	GetInfo() (string, error)
}

// Modules that are displayed in the bar
var BarModules = []Module{
	DateModule{},
	BatteryModule{},
	TimeModule{},
}

func main() {
	main := Bar{
		Modules: BarModules,
	}

	// Display the bar info to stdout
	fmt.Println(main.Display())
}