- Set a random wallpaper from a directory
- Set the bing image of the day wallpaper (4K resolution)
- Enhance any wallpaper with the watch word of today
- Downloads current watchwords of the year if not present
- Scales image to fixed width and keeps aspect ratio
- Position, fontsize, urls, etc. can be configured via config file
- Config file will be generated, if not present
- Download latest version from releases.
- Unpack archieve and execute go-wallpaper[.exe] executable
- Adjust the default configuration file
- (Optional) Create a shortcut for your OS startup mechanism
To override the config file behaviour you can execute the executable with the following commandline arguments:
# Print help
go-wallpaper --help
# Print the current version of the executable
go-wallpaper version
# Force using the directory from the config file as image source
go-wallpaper dir
# Force using the directory from the config file as image source
go-wallpaper bing
# Add this parameter with the previous commands to optionally enable printing the watchwords on top of the wallpaper
--watchwords
# e.g.
go-wallpaper dir --watchwords
Take wallpapers from a directory
{
"watchWords": {
"x": 1500,
"y": 1000,
"fontSize": 50,
"fontPath": "fonts/Sketch.ttf",
"isActive": true
},
"bingFeed": {
"feedUrl": "https://peapix.com/bing/feed?country=de",
"isActive": false
},
"imageDirectory": {
"isActive": true,
"path": "C:/tools/wp/images"
},
"desktop": {
"maxWidth": 2560
}
}
Take wallpapers from online service - bing image of the day
{
"watchWords": {
"x": 1500,
"y": 1000,
"fontSize": 50,
"fontPath": "fonts/Sketch.ttf",
"isActive": true
},
"bingFeed": {
"feedUrl": "https://peapix.com/bing/feed?country=de",
"isActive": true
},
"imageDirectory": {
"isActive": false,
"path": "C:/tools/wp/images"
},
"desktop": {
"maxWidth": 2560
}
}
In cmd/wp
directory run:
go build .
In cmd/wp
directory run:
go run .
GoReleaser is used to generate releases for different OS and architectures in github releases.
GoReleaser is triggered on every git-tag that starts with v*
, e.g. v1.0.0
.
Project inspiration: https://github.com/PeterIttner/BingWallpaper