config

package
v0.0.0-...-57bcc88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigLocation string = `$HOME/.config/i3persistantweatherblock`

Functions

func IsButtonPressed

func IsButtonPressed() bool

func SetConfigFile

func SetConfigFile() error

func SetupConfig

func SetupConfig(changeChannel chan<- struct{}) error

Types

type Block

type Block struct {
	Template string `json:"template"`
	Interval int    `json:"interval"`
	Button   int    `json:"button"`
}

type Config

type Config struct {
	CheckInterval int      `json:"interval"`
	Location      Location `json:"location"`
	Block         Block    `json:"block"`
	AlertPopup    Popup    `json:"alertPopup"`
	DetailPopup   Popup    `json:"detailPopup"`
}
var MyConfig Config

type Location

type Location struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
}
type Popup struct {
	Template   string `json:"template"`
	TimeToShow int    `json:"timeToShow"`
	Title      string `json:"title"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL