summaryrefslogtreecommitdiff
path: root/desktop-wayland/.local/bin
diff options
context:
space:
mode:
authorMarcelo Lira <mlira@acumera.com>2025-03-07 00:41:38 -0300
committerMarcelo Lira <mlira@acumera.com>2025-03-19 20:35:19 -0300
commit7343a15f123c78d7c29ff7a189798de689869026 (patch)
tree462f4fbe3f17ee36c3adad2bc57531e2f8f371a7 /desktop-wayland/.local/bin
Initial commit.HEADmaster
Diffstat (limited to 'desktop-wayland/.local/bin')
-rwxr-xr-xdesktop-wayland/.local/bin/screenlock-wayland19
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop-wayland/.local/bin/screenlock-wayland b/desktop-wayland/.local/bin/screenlock-wayland
new file mode 100755
index 0000000..f722e0f
--- /dev/null
+++ b/desktop-wayland/.local/bin/screenlock-wayland
@@ -0,0 +1,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