Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TimeInterval = 60 Wallpaper = "/System/Library/Desktop Pictures/Monterey Graphic.heic" )
Functions ¶
func GetConfigRelativePath ¶
func GetConfigRelativePath() string
GetConfigRelativePath works when app is built, gets the config relative path
func GetWallpaper ¶
GetWallpaper Get returns the path to the current wallpaper.
func SetFromFile ¶
SetFromFile uses AppleScript to tell Finder to set the desktop wallpaper to specified file.
func SetWallpaper ¶
SetWallpaper Check if the wallpaper is changed. If so, update it to the default one
Types ¶
type WallpaperScheduler ¶
type WallpaperScheduler struct {
// contains filtered or unexported fields
}
WallpaperScheduler is the main struct for the app
func GetInstance ¶
func GetInstance() *WallpaperScheduler
GetInstance gets the singleton instance for wallpaper scheduler app
Click to show internal directories.
Click to hide internal directories.