Skip to content

Randomise wallpapers on Linux, with a simple bash script and systemd.

License

Notifications You must be signed in to change notification settings

xbc5/wallpaper-randomiser

Repository files navigation

Wallpaper Randomiser

Description

Select a random wallpaper, from the local file system, every N minutes.

It will cycle through all images randomly in sequence -- so no images are left unused for long periods.

Native Dependencies

feh, notify-send.

Install

./install.sh i

This will enable the wallpaper-randomiser.service too, as a user service.

Also install native deps (choose one):

sudo apk add feh libnotify
sudo apt-get install feh libnotify-bin
sudo brew install feh libnotify 
sudo dnf install feh libnotify
sudo pacman -S feh libnotify 
sudo yum install feh libnotify

Usage

Simply place jpg or png files in the wallpaper_dir, which defaults to ~/.wallpapers.

Config

The config file lives at /etc/wallpaper-randomiser.yaml, and the (implicit) default values are:

interval_mins: 30
wallpaper_dir: ~/.wallpapers

Uninstall

./install.sh u