github.com/wtfutil/wtf@v0.43.0/modules/power/settings.go (about) 1 package power 2 3 import ( 4 "github.com/olebedev/config" 5 "github.com/wtfutil/wtf/cfg" 6 ) 7 8 const ( 9 defaultFocusable = false 10 defaultTitle = "Power" 11 ) 12 13 type Settings struct { 14 *cfg.Common 15 } 16 17 func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings { 18 settings := Settings{ 19 Common: cfg.NewCommonSettingsFromModule(name, defaultTitle, defaultFocusable, ymlConfig, globalConfig), 20 } 21 22 return &settings 23 }