From be410fb0dc227cf44381974a8fcc3cdf3132a24e Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 21 Jun 2024 14:28:29 +0000 Subject: [PATCH] Add files via upload --- lockscreen.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lockscreen.sh diff --git a/lockscreen.sh b/lockscreen.sh new file mode 100644 index 0000000..8d3ad15 --- /dev/null +++ b/lockscreen.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Define the image paths +IMAGE1="/home/ion606/Pictures/windowsanime2.jpg" +IMAGE2="/home/ion606/Pictures/windowsanime.jpg" + +# Randomly select one of the images +if [ $((RANDOM % 2)) -eq 0 ]; then + SELECTED_IMAGE="$IMAGE1" +else + SELECTED_IMAGE="$IMAGE2" +fi + +# Run swaylock with the selected image +swaylock --image "$SELECTED_IMAGE"