# QuickWall
**Repository Path**: IMGet/QuickWall
## Basic Information
- **Project Name**: QuickWall
- **Description**: QuickWall 是基于 Python 开发的命令行壁纸工具,工具免费开源,可以从 Unsplash 上抓取最新壁纸并设置为桌面背景,并可以基于你的壁纸设置改变终端窗口的主题
- **Primary Language**: Python
- **License**: MIT
- **Default Branch**: master
- **Homepage**: https://www.oschina.net/p/quickwall
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-01-19
- **Last Updated**: 2021-01-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
QuickWall
How It Works |
Installation |
Requirements |
Usage |
TODO |
Acknowledgements
[](https://www.python.org/)
 [](LICENSE)   [](http://makeapullrequest.com)
## How It Works
It detects your DE or WM, gets wallpapers from **Unsplash** and sets them using either your choice of wallpaper setter or by **nitrogen**. Not enough? It can also change your theme based on the wallpapers that it gets, thanks to [pywal](https://github.com/dylanaraps/pywal).
## Installation
* It is available in Pypi
```sh
pip3 install QuickWall
```
* Available in AUR [here](https://aur.archlinux.org/packages/quickwall/)
```sh
yay -S quickwall
```
> **NOTE**: The directory is changed from ```~/.QuickWall``` to ```~/.cache/QuickWall```. Early users can use ```--migrate``` option to move their data.
### OR
* Run the following command in the root directory to install QuickWall.
```sh
python setup.py install
```
> **NOTE**: If you get **permission denied** error, run the above command with sudo.
## Requirements
1. Python 3.6+
2. Currently supported wallpaper setters
- [nitrogen](https://github.com/l3ib/nitrogen)
- [feh](https://github.com/derf/feh)
- [kde](https://github.com/KDE/plasma-desktop)
- [xfce](https://www.xfce.org/)
- [gnome/unity](https://www.gnome.org/)
> **NOTE**: These dependencies in linux can be installed in other variants.
> For *arch linux*, you can use **pacman** package manager accordingly.
## Usage
```console
usage: QuickWall [-h] [--version] [--clear-cache] [--setter SETTER] [-d]
[--remove-id ID] [--dir DIR] [--id ID] [--random]
[--search TERM] [--migrate] [--set-lockscreen]
QuickWall - Quickly set latest wallpapers from Unsplash directly from
the commandline.
optional arguments:
-h, --help show this help message and exit
--version show the program version number and exit
--clear-cache Clear the cache from the cache folder
(~/.cache/QuickWall)
--setter SETTER Wallpaper setter to be used. Currently supported
ones: nitrogen, feh, xfce, kde, gnome, unity
(default: nitrogen)
-d, --disable-blacklist
Disable adding the image to blacklisted ones.
--remove-id ID Remove the passed ID from the blacklist.
--dir DIR Directory to download the wallpapers
--id ID Get a photo by its ID.
--random Get random wallpapers.
--search TERM Show wallpapers based on the passed term
--migrate ONLY FOR EARLY USERS. Move the files from
~/.QuickWall to ~/.cache/QuickWall.
--set-lockscreen Set lockscreen wallpaper (currently for KDE)
```
## TODO
- Add tests
- Add support for different wallpaper setters (raise an issue if you want me to support some particular one)
- Handle errors better
- ~~Add support for GNOME/Unity~~
- ~~Add support for XFCE~~
- ~~Add automatic detection of wallpaper setter depending on the OS. Fallback would be nitrogen.~~
- ~~Add support to restore wallpapers for KDE.~~
- ~~Add a logger~~
- ~~Add support to search~~
## Acknowledgements
- [Unsplash](https://unsplash.com) for their awesome API.
- [Pavel Borisov](https://github.com/pashazz) for [ksetpaper](https://github.com/pashazz/ksetwallpaper) code.