summaryrefslogtreecommitdiff
path: root/desktop-wayland/.local/bin/screenlock-wayland
blob: f722e0f6814b2b5737edddd83cc763221f7a86df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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