An open API service indexing awesome lists of open source software.

https://github.com/spatocode/xpaper

Cross-platform library for managing desktop wallpaper
https://github.com/spatocode/xpaper

background-image desktop linux python wallpaper windows

Last synced: 9 months ago
JSON representation

Cross-platform library for managing desktop wallpaper

Awesome Lists containing this project

README

          

# Xpaper ![version](https://img.shields.io/pypi/v/Xpaper) ![downloads](https://img.shields.io/pypi/dm/Xpaper) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![issues](https://img.shields.io/github/issues/spatocode/Xpaper) ![build](https://img.shields.io/travis/spatocode/Xpaper)

Cross-platform library for changing desktop wallpaper

Works on windows and Linux

Supports all versions of Python

## Install

```
$ pip install xpaper
```

## Usage

```py
from xpaper import wallpaper

wallpaper.change("C:/Users/Spatocode/wallpaper.jpg") # absolute path to the image

wallpaper.get() # "/Users/Spatocode/wallpaper.jpg"
```

## API

### .change(imagepath)
Changes the desktop wallpaper

#### imagepath
Type: string

an absolute path to the image

### .get()
Returns the path of the current desktop wallpaper.

# LICENSE

[MIT License](http://www.github.com/spatocode/Xpaper/blob/master/LICENSE)

Copyright (c) 2019 Ekene Izukanne