aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-10-20 19:20:37 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-10-20 19:20:37 +0100
commit5d2134c20e1b77be2507e328274fa2290030aff2 (patch)
treee2b0f91fba26a0d061cd1b943e534f7f54744ee9
parent11dba53971cf2260dee4377de4f38738999200a2 (diff)
downloaddotfiles-5d2134c20e1b77be2507e328274fa2290030aff2.tar.gz
dotfiles-5d2134c20e1b77be2507e328274fa2290030aff2.tar.bz2
dotfiles-5d2134c20e1b77be2507e328274fa2290030aff2.zip
(Scripts)~lock_image is randomly chosen, ~default colour is black
-rwxr-xr-xScripts/.local/scripts/lock5
1 files changed, 3 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/lock b/Scripts/.local/scripts/lock
index bfaff05..1939e37 100755
--- a/Scripts/.local/scripts/lock
+++ b/Scripts/.local/scripts/lock
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
-lock_image=$HOME/Pictures/Lockscreens/0062.png
-i3lock -nbfet -i $lock_image -c 33ee88
+# lock_image=$HOME/Pictures/Lockscreens/0062.png
+lock_image="$HOME/Pictures/Lockscreens/$(ls $HOME/Pictures/Lockscreens | shuf | head -1)"
+i3lock -nbfe -i $lock_image -c 000000 # 33ee88