Dotfiles/wayland/.local/bin/wallpaper-tile.sh

12 lines
175 B
Bash
Executable File

#!/bin/sh
WP_DIR="$HOME/Pictures/Wallpapers/tiles"
WP_EXT="*.png"
WP="$(ls "$WP_DIR"/$WP_EXT 2>/dev/null | shuf -n1)"
[ -n "$WP" ] || exit 0
exec swaybg -m tile -i "$WP"