wallpaper

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2025 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileType           = ".png"
	MaxWatermarkHeight = 50
)

Variables

This section is empty.

Functions

func SetWallpaper

func SetWallpaper(filepath string) error

Types

type Dimensions

type Dimensions struct {
	Width  int
	Height int
}

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"`
}

Jump to

Keyboard shortcuts

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