#background #desktop #wallpaper

app wpr

Wallpaper Randomizer. Sets a wallpaper (using feh) randomly chosen from a directory.

4 releases (2 breaking)

0.3.0 Aug 7, 2022
0.2.0 Oct 23, 2021
0.1.2 Oct 9, 2021
0.1.0 Oct 16, 2020

#702 in Command line utilities

27 downloads per month

MIT license

68 lines

Wallpaper Randomizer

Sets a wallpaper (using the feh image viewer) randomly chosen from a directory.


Since I like to change my wallpaper on the tap of a button and flip through my collection until I find one that I feel comfortable with for the moment (depending on time of day, lighting conditions, atmosphere, mood, etc.), I ported my Python script to Rust to avoid booting up the Python interpreter for each call.


Just point it to a directory that contains images:

$ wpr ~/Wallpapers
  • Considered image file extensions (case-insensitively) are "gif", "jpeg", "jpg", and "png".
  • Sub-directories are not considered. This is so images can be moved into a sub-directory to exclude them from the random selection for the time being (in case you've seen them a bit too often recently) but still keep them nearby of the other wallpapers.


Wallpaper Randomizer is licensed under the MIT license.


~35K SLoC