+lock script

Randomly chooses a file from the lockscreens folder, then uses it for
the i3lock lockscreen background image
This commit is contained in:
dx
2020-05-14 03:03:21 +01:00
parent e4e8719471
commit 297f679d97

5
Scripts/.local/scripts/lock Executable file
View File

@@ -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