bing-wallpaper-changer

module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT

README

test_and_report build_and_release Go Report Card Maintainability Test Coverage Go Reference Go version Release Release Date Commits since latest release Downloads (all assets, all releases) Downloads (all assets, latest release)


bing-wallpaper-changer

bing-wallpaper-changer is a cross-platform compatible wallpaper-changer (CLI).

It fetches the newest Bing wallpaper and sets it as a desktop background image. Custom watermark can be used on the downloaded image. Done just for fun 😄

Features

  • Crawl and fetch newest Bind wallpaper
    • Support multiple regions
    • Support multiple screen resolutions (😡 UltraHD is broken on the Bing side)
    • Download wallpapers up to seven days in the past
  • Draw title on wallpapers
  • Place QR code for the copyright links
  • Draw watermarks
    • Scale down/up to match the resolution of the wallpaper
    • Rotate if necessary (only clockwise rotation by 90° supported)

Usage

$ bing-wallpaper-changer -h
>
> Usage: bing-wallpaper-changer [flags]
>       --day int                     the day to fetch the wallpaper for, 0 is today, 1 is yesterday, and so on, 7 is the highest value, which is seven days ago
>       --description                 draw the description on the wallpaper (default true)
>       --download-directory string   the directory to download the wallpaper to (default "~/Pictures/BingWallpapers")
>       --download-only               download the wallpaper only
>       --qrcode                      draw the QR code on the wallpaper (default true)
>       --region string               the region to fetch the wallpaper for, allowed values are: en-CA, zh-CN, de-DE, ja-JP, en-NZ, en-GB, en-US (default "de-DE")
>       --resolution string           the resolution of the wallpaper, allowed values are: 1366x768, 1920x1080, 3840x2160 (default "1920x1080")
>       --rotate-counter-clockwise    rotate the watermark counter-clockwise if necessary (default is clockwise)
>       --watermark string            draw the watermark on the wallpaper (default "sarumaj.png")

Examples

Default

Using default parameters:

Bing Wallpaper of the day with QR code, default watermark and title

Resized watermark

Using small PNG watermark: red-dot.png

Bing Wallpaper of the day with QR code, red-dot watermark and title

Rotated watermark

Using vertical (portrait-mode) PNG watermark: car.png

Bing Wallpaper of the day with QR code, car watermark and title

Fetching Bing wallpaper for the ja-JP region

Using default parameters with region set to ja-JP:

Bing Wallpaper of the day for ja-JP region with QR code, default watermark and title

Directories

Path Synopsis
cmd
pkg
extras
Package extras contains extra functions that are not part of the main package.
Package extras contains extra functions that are not part of the main package.

Jump to

Keyboard shortcuts

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