Documentation
¶
Overview ¶
Package config loads, stores, and provides default values for work and break tasks.
Index ¶
Constants ¶
View Source
const ( AppName = "pomo" ConfigFile = "pomo.yaml" )
Variables ¶
View Source
var ( //go:embed pomo.png Icon []byte C Config DefaultConfig = map[string]any{ "onSessionEnd": "ask", "asciiArt": map[string]any{ "enabled": true, "font": ascii.DefaultFont, "color": colors.TimerFg, }, "work": map[string]any{ "duration": 25 * time.Minute, "title": "work session", "notification": map[string]any{ "enabled": true, "urgent": false, "title": "work finished 🎉", "message": "time to take a break!", }, }, "break": map[string]any{ "duration": 5 * time.Minute, "title": "break session", "notification": map[string]any{ "enabled": true, "urgent": false, "title": "break over 😴", "message": "back to work!", }, }, "longBreak": map[string]any{ "enabled": true, "after": 4, "duration": 15 * time.Minute, }, } )
Functions ¶
func LoadConfig ¶
func LoadConfig() error
Types ¶
type Notification ¶ added in v0.2.0
type Task ¶
type Task struct {
Title string
Duration time.Duration
Then [][]string
Notification Notification
}
Click to show internal directories.
Click to hide internal directories.