Skip to main content

Randomly change wallpaper for given monitor(s) in hyprpaper.

Project description

Pyprpaper

Pyprpaper is a hyprpaper client, its main purpose is to change wallpapers randomly (for given set of monitors) from a given directory(ies).

Features

  • Randomly change wallpapers for given monitors.
  • Recursive image look-up in all directories.
  • Timer to change wallpaper each n seconds.
  • Support for none-hyprpaper/hyprland setup.

Installation

You can install pyprpaper using pip:

pip install pyprpaper

It is also available in the AUR (pyprpaper) for the arch linux btw users:

# With yay
yay -S pyprpaper

The PKGBUILD and .SRCINFO files are at rofe33/pyprpaper-aur.

Usage

usage: pyprpaper [-h] [-v] -m monitor1 monitor2 [monitor1 monitor2 ...]
                 [-s SOCKET_PATH] [-k] [-r] [-f [additional file types ...]]
                 [-t TIMER]
                 path/to/directories [path/to/directories ...]

A simple wallpaper changer.

positional arguments:
  path/to/directories   Path to directories containing the images.

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -m monitor1 monitor2 [monitor1 monitor2 ...], --monitors monitor1 monitor2 [monitor1 monitor2 ...]
                        Monitor(s) to change wallpapers on.
  -s SOCKET_PATH, --socket-path SOCKET_PATH
                        Override socket path.
  -k, --keep-wallpapers-loaded
                        Whether to keep wallpapers loaded in RAM or not.
  -r, --recursive       Whether to recursive get the images from the
                        directories.
  -f [additional file types ...], --additional-file-types [additional file types ...]
                        Additional image file types.
  -t TIMER, --timer TIMER
                        Timer to change the wallpaper each n seconds

All The Glory To Jesus God...

Example

Change wallpaper for all monitors in hyprland/hyprpaper set-up:

pyprpaper -m $(hyprctl -j monitors | jq -r '.[].name' | tr '\n' ' ') -- /path/to/wallpaper/directories

My Hyprpaper/Pyprpaper setup

I am running hyprland/hyprpaper, if you are not using hyprland things will defer depending on what you are using. However pyprpaper will work on any wayland compositor if you are using hyprpaper.

You can have an empty hyprpaper.conf setup and just run pyprpaper in the exec-once in hyprland.conf.

My current hyprpaper.conf config:

splash = off

and in hyprland.conf I have:

exec-once = pyprpaper -t 600 -m $(hyprctl -j monitors | jq -r '.[].name' | tr '\n' ' ') -- /path/to/directory(ies)

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

pyprpaper-0.3.1.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

pyprpaper-0.3.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file pyprpaper-0.3.1.tar.gz.

File metadata

  • Download URL: pyprpaper-0.3.1.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyprpaper-0.3.1.tar.gz
Algorithm Hash digest
SHA256 52e570cbcc98b706cc5c8dac1df83ba4130c14ea08a2334a206e96fc892ba2a2
MD5 92e860cadb49b1c5ae75f6a4ce740663
BLAKE2b-256 efea2146d58afec12a4327d06726b4cb9e9b7df742f369e6f81fee71e22961c5

See more details on using hashes here.

File details

Details for the file pyprpaper-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pyprpaper-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for pyprpaper-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c2283ce90c20657b8f523c0fb8d5d565d97ca3fd2040054892cd1966920b2c9
MD5 4231f2ee7670afd4c03ecf98a06fd743
BLAKE2b-256 644bf1019fad7ed539256e2338ca9d414adb187f9546b803faf537cd934eece3

See more details on using hashes here.

Supported by

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