Files
dotfiles/Scripts/.local/scripts/lock
dx 297f679d97 +lock script
Randomly chooses a file from the lockscreens folder, then uses it for
the i3lock lockscreen background image
2020-05-14 03:03:21 +01:00

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