Documentation ¶
Index ¶
- Variables
- func ConfigFilePath(name string) string
- func InitArgs(name, version, commit, date string)
- func InitConfig()
- func InitFiles(toml []byte)
- func IsInIntList(item int, items []int) bool
- func IsInList(item string, items []string) bool
- func IsInsideRect(p *Pointer, r xrect.Rect) bool
- func Truncate(s string, max int) string
- type Arguments
- type BuildInfo
- type Configuration
- type FileData
- type Pointer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Build BuildInfo // Build information Args Arguments // Parsed arguments )
Functions ¶
func ConfigFilePath ¶
func InitConfig ¶
func InitConfig()
func IsInIntList ¶
Types ¶
type Arguments ¶
type Arguments struct { Config string // Argument for config file path PrintDisplay bool // Print the number of the current display Lock string // Argument for lock file path Sock string // Argument for sock file path Log string // Argument for log file path VVV bool // Argument for very very verbose mode VV bool // Argument for very verbose mode V bool // Argument for verbose mode }
type Configuration ¶
type Configuration struct { StickyDisplays []int `toml:"sticky_displays"` // Display numbers to sticky windows on WindowIgnore [][]string `toml:"window_ignore"` // Regex to ignore windows Keys map[string]string `toml:"keys"` // Event bindings for keyboard shortcuts }
var (
Config Configuration // Decoded config values
)
Click to show internal directories.
Click to hide internal directories.