aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-14 03:03:21 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-14 03:03:21 +0100
commit297f679d97c101ba566050f307be746f4555bbd0 (patch)
treed50b74ab93cf600a76c8b8813cf01b8fb72013eb /Scripts/.local/scripts
parente4e8719471da5a326a8bd423e1d80403e698f9da (diff)
downloaddotfiles-297f679d97c101ba566050f307be746f4555bbd0.tar.gz
dotfiles-297f679d97c101ba566050f307be746f4555bbd0.tar.bz2
dotfiles-297f679d97c101ba566050f307be746f4555bbd0.zip
+lock script
Randomly chooses a file from the lockscreens folder, then uses it for the i3lock lockscreen background image
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-xScripts/.local/scripts/lock5
1 files changed, 5 insertions, 0 deletions
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