{"repo":"sindresorhus/wallpaper","free":true,"listed":false,"github":"https://github.com/sindresorhus/wallpaper","clone":"git clone https://github.com/sindresorhus/wallpaper.git","description":"Manage the desktop wallpaper","language":"JavaScript","stars":1093,"topics":["javascript","nodejs","wallpaper","desktop-wallpaper","macos","linux","windows"],"license":"MIT","category":"dev-tools","readme_excerpt":"wallpaper Get or set the desktop wallpaper Works on macOS 10.14.4+, Linux, and Windows 10+. Maintainer needed for the Linux part of the code. No new Linux-related changes will be accepted until someone with good Linux knowledge volunteers. Install Usage API getWallpaper(options?) Returns a Promise with the path of the current desktop wallpaper. options Type: object screen (macOS only) Type: string number \\ Values: 'all' , 'main' , or the index of a screen from .screens() \\ Default: 'main' The screen to get the wallpaper from. If you set 'all' then getWallpaper() will return a Promise . setWallpaper(imagePath, options?) Returns a Promise . On macOS, it sets the wallpaper on the active space. There is no way to set it on all spaces. imagePath Type: string The path to the image to set as the desktop wallpaper. options Type: object screen (macOS only) Type: string number \\ Values: 'all' , 'main' , or the index of a screen from .screens() Default: 'all' The screen to set the wallpaper on. On Linux and Windows it's hard-coded to 'main' . scale (macOS & Windows) Type: string \\ macOS Values: 'auto' 'fill' 'fit' 'stretch' 'center' \\ Windows Values: 'center' 'stretch' 'tile' 'span' 'fit' 'fill' \\ Default macOS: 'auto' \\ Default Windows: 'span' Scaling method. setSolidColorWallpaper(color, options?) (macOS only) Returns a Promise . color Type: string The color to set as a RGB Hex value. For example, 000000 for black. options Type: object screen Type: string number \\ Values: 'all' , 'mai","default_branch":null,"files":null,"tree":[],"storefront":"/r/sindresorhus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sindresorhus/wallpaper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}