Skip to main content

A wallpaper manager

Project description

Pyrrot

This is a collection of scripts I use to manage my wallpapers. This is made for my usage in mind, and hasn't been tested much by others, but it might interest you. If you've got any suggestion or issue, please let me know.

I personnally use Archlinux, and more importantly i3wm. These scripts may not work on other window managers.

What does it do ?

The wallpaper.py script sets you wallpaper from a json file listing all your wallpapers with a few attributes. Wallpapers may be any file supported by feh (jpeg and non-animated png and gif). Animated gif or vidéo support for live-wallpapers will be supported later using xwinwrap. (I should also make a script to aut-generate such a json file if you just want to use a list of images without selection by tags or colors for instance.)

mpd-wallpaper will allow you to set your wallpaper with the cover of the current music you're listening to with your mpd server. It requires wallpaper.py.

Usage

  1. Edit wallpaper.conf according to your needs.
  2. Setup a cron job to run wallpaper.py to change the wallpaper regularly. Mine is */5 * * * * DISPLAY=:0 /home/user/scripts/wallpaper/wallpaper.py
  3. Setup a systemd task for the mpd part (optional). See the mpd-wallpaper.service.example. Of course if you prefer not to run the scripts with cron or systemd, you're free to use them as you want.

Prerequisites

Python 3.7 for the mpd script, Python 3.5 for the wallpaper.py, pywal and feh. Linux (it might work on some BSD or macOS but it may need some tweaks, and it hasn't been tested at all)

Development

This software uses pytest to run automated test, checking that it functions well. Below is a list of commands useful for checking everything is allright.

pip install -e .
coverage run -m pytest --junitxml=report.xml
coverage report
pylint src/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrrot_wallpaper-0.0.2.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrrot_wallpaper-0.0.2-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrrot_wallpaper-0.0.2.tar.gz.

File metadata

  • Download URL: pyrrot_wallpaper-0.0.2.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for pyrrot_wallpaper-0.0.2.tar.gz
Algorithm Hash digest
SHA256 40a54867817ef45747fd4c66da2f22018b992f3617ddf129a3a9a9923c13f33b
MD5 61bd2d1397b335d31c663a44dec0a0f0
BLAKE2b-256 0f36fc8a1b55e194736ec4cc578ad86c3ec5b0279f6b07635753b2b03a538fce

See more details on using hashes here.

File details

Details for the file pyrrot_wallpaper-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyrrot_wallpaper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04f51e2322becfdcb3e0b8cb18374fe546ec04504b548eb503e56cb05f3553fa
MD5 e2594a92b7d4d5593973b100eca5cd19
BLAKE2b-256 a7ab29698dae59059ab2494f5451df1895e307e883765f58edff7dcd82606f12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page