Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileType = ".png" MaxWatermarkHeight = 50 )
Variables ¶
This section is empty.
Functions ¶
func SetWallpaper ¶
Types ¶
type Dimensions ¶
type WallpaperConfig ¶
type WallpaperConfig struct {
DisableClock bool
DisableOSWallpaperUpdate bool
TargetDimensions Dimensions
FontConfigClock render.FontConfig
}
type WallpaperManager ¶
type WallpaperManager struct {
WallpaperManagerConfig WallpaperManagerConfig
WallpaperConfig WallpaperConfig
// contains filtered or unexported fields
}
func NewWallpaperManager ¶
func NewWallpaperManager(configPath string) (*WallpaperManager, error)
func (*WallpaperManager) LoadConfig ¶
func (wm *WallpaperManager) LoadConfig(path string) error
func (*WallpaperManager) UpdateWallpaper ¶
func (wm *WallpaperManager) UpdateWallpaper(fetchSource, deepClean bool)
type WallpaperManagerConfig ¶
type WallpaperManagerConfig struct {
Input struct {
URL string `yaml:"url"`
CropFactor float64 `yaml:"crop_factor"`
OffsetX float64 `yaml:"offset_x"`
OffsetY float64 `yaml:"offset_y"`
} `yaml:"input"`
ImageProcessing struct {
Contrast float64 `yaml:"contrast"`
Saturation float64 `yaml:"saturation"`
Brightness float64 `yaml:"brightness"`
Hue float64 `yaml:"hue"`
Gamma float64 `yaml:"gamma"`
BlackPoint float64 `yaml:"black_point"`
WhitePoint float64 `yaml:"white_point"`
ShadowStrength float64 `yaml:"shadow_strength"`
BlurStrength float64 `yaml:"blur_strength"`
SharpenStrength float64 `yaml:"sharpen_strength"`
MaxNoiseOpacity float64 `yaml:"max_noise_opacity"`
NoiseScale int `yaml:"noise_scale"`
} `yaml:"image_processing"`
Scheduling struct {
UpdateIntervalMinutes int `yaml:"update_interval_minutes"`
} `yaml:"scheduling"`
Output struct {
Blend bool `yaml:"blend"`
SavePath string `yaml:"save_path"`
} `yaml:"output"`
}
Click to show internal directories.
Click to hide internal directories.