bingwp

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2025 License: MIT Imports: 18 Imported by: 0

README

BingWP - Bing Wallpaper Downloader

A simple command-line tool to download daily wallpapers from Bing. This tool automatically fetches the latest Bing wallpaper of the day and can optionally resize it to your preferred dimensions.

I personaly use this tool to set background wallpaper in sway using simple script

#!/bin/bash
set -e

bingwp -s 3840x2160 -o ~/Pictures/wallpaper.jpg
swaymsg "output * bg ~/Pictures/wallpaper.jpg center"

Features

  • Downloads the latest Bing wallpaper of the day
  • Optional image resizing to specified dimensions
  • Automatic backup of previous wallpaper
  • Proxy support for restricted networks
  • Simple command-line interface

Installation

go install github.com/ybereza/bingwp@latest

Usage

bingwp -s <image size> -o <output filename>
Arguments
  • -o (required): Output filename (e.g., image.jpg or ~/pictures/image.jpg)
  • -s (optional): Image size in format WIDTHxHEIGHT (e.g., 1920x1080)
  • --proxy (optional): Proxy address if needed
Examples

Download wallpaper in original size:

bingwp -o ~/Pictures/bing-wallpaper.jpg

Download and resize wallpaper to 1920x1080:

bingwp -s 1920x1080 -o ~/Pictures/bing-wallpaper.jpg

Use with proxy:

bingwp -s 1920x1080 -o ~/Pictures/bing-wallpaper.jpg --proxy http://proxy.example.com:8080

Requirements

  • Go 1.24 or later
  • Internet connection
  • Write permissions in the output directory

Documentation

Overview

A simple tool to download daily bing wallpapers Takes two arguments

-s <image size in WxH format> (-s 1920x1080)
-o output file path

and saves wallpaper of the day from Bing to output file

$bingwp -s 1920x10180 -o /tmp/daily.jpg

Jump to

Keyboard shortcuts

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