From 297f679d97c101ba566050f307be746f4555bbd0 Mon Sep 17 00:00:00 2001 From: dx Date: Thu, 14 May 2020 03:03:21 +0100 Subject: +lock script Randomly chooses a file from the lockscreens folder, then uses it for the i3lock lockscreen background image --- Scripts/.local/scripts/lock | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 Scripts/.local/scripts/lock (limited to 'Scripts/.local/scripts/lock') diff --git a/Scripts/.local/scripts/lock b/Scripts/.local/scripts/lock new file mode 100755 index 0000000..bc6a908 --- /dev/null +++ b/Scripts/.local/scripts/lock @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -euo pipefail + +lock_image=$HOME/Pictures/Lockscreens/$(ls $HOME/Pictures/Lockscreens | shuf | head -1) +i3lock -n -f -e -i $lock_image -- cgit v1.2.3-13-gbd6f