Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "1.0.0"
Variables ¶
View Source
var Desktop = os.Getenv("XDG_CURRENT_DESKTOP")
Desktop contains the current desktop environment on Linux. Empty string on all other operating systems.
View Source
var DesktopSession = os.Getenv("DESKTOP_SESSION")
DesktopSession is used by LXDE on Linux.
View Source
var ErrUnsupportedDE = errors.New("your desktop environment is not supported")
ErrUnsupportedDE is thrown when Desktop is not a supported desktop environment.
Functions ¶
func SetFromFile ¶
SetFromFile sets wallpaper from a file path.
func SetFromURL ¶
SetFromURL downloads the image to a cache directory and calls SetFromFile.
Types ¶
Click to show internal directories.
Click to hide internal directories.