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
- Host: GitHub
- URL: https://github.com/spatocode/xpaper
- Owner: spatocode
- License: mit
- Created: 2019-04-14T15:40:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-28T21:28:48.000Z (about 3 years ago)
- Last Synced: 2025-04-09T06:03:38.396Z (about 1 year ago)
- Topics: background-image, desktop, linux, python, wallpaper, windows
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xpaper   [](https://opensource.org/licenses/MIT)  
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