Documentation
¶
Overview ¶
Package generators provides configuration file generation functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGenerator ¶
type ConfigGenerator struct {
// contains filtered or unexported fields
}
func NewConfigGenerator ¶
func NewConfigGenerator(cfg *config.Config) (*ConfigGenerator, error)
func (*ConfigGenerator) GenerateConfig ¶
func (g *ConfigGenerator) GenerateConfig(cfg *config.RawConfig, profile *matchers.MatchedProfile, connectedMonitors []*hypr.MonitorSpec, powerState power.PowerState, lidState power.LidState, destination string, dryRun bool, ) (bool, error)
GenerateConfig either renders a template or links a file, and returns if any changed were done this includes stating the config files to catch if the user modified them by hand (in linking scenario)
func (*ConfigGenerator) ValidateTemplates ¶ added in v1.4.0
func (g *ConfigGenerator) ValidateTemplates() error
type MonitorSpec ¶ added in v1.0.0
type MonitorSpec struct {
Name string `json:"name"`
ID *int `json:"id"`
Description string `json:"description"`
Disabled bool `json:"disabled"`
AvailableModes []string `json:"availableModes"`
Mirror string `json:"mirrorOf"`
CurrentFormat string `json:"currentFormat"`
DpmsStatus bool `json:"dpmsStatus"`
ActivelyTearing bool `json:"activelyTearing"`
DirectScanoutTo string `json:"directScanoutTo"`
Solitary string `json:"solitary"`
}
func NewMonitorSpec ¶ added in v1.3.0
func NewMonitorSpec(monitor *hypr.MonitorSpec) *MonitorSpec
Click to show internal directories.
Click to hide internal directories.