wallpaperctl/usr/local/bin/gnome_rotate_wallpaper

4 lines
170 B
Bash

#!/bin/bash
selection=$(find $WALLPAPER_DIR -type f -name "*.jpg" -o -name "*.png" | shuf -n1)
gsettings set org.gnome.desktop.background picture-uri "file://$selection"