Randomly chooses a file from the lockscreens folder, then uses it for the i3lock lockscreen background image
6 lines
158 B
Bash
Executable File
6 lines
158 B
Bash
Executable File
#!/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
|