#!/bin/env bash BACKGROUND_DIR=/usr/local/share/backgrounds IMAGES=( bag-end.jpg book-of-kells.jpg gandalf-1.jpg in-hoc-signo-vinces-fire.png mount-st-michel.jpg odysseus-and-the-sirens-by-waterhouse.jpg saint-michael.png ) IMAGE=$(printf "%s\n" "${IMAGES[@]}" | shuf -n 1) swaylock --indicator-radius 200 \ --indicator-thickness 30 \ --show-failed-attempts \ --daemonize \ --image $BACKGROUND_DIR/$IMAGE