1
0
Fork 0
dotfiles/bin/executable_blur-lock

14 lines
576 B
Bash

#!/usr/bin/env bash
WALLPAPER=$(realpath ~/Pictures/Wallpapers/mountains-blue.jpg)
BLURRED_WALLPAPER=$(realpath ~/.local/share/wallpaper-blurred.jpg)
if [[ ! -f "${BLURRED_WALLPAPER}" ]]; then
echo "Trying to convert"
convert -filter Gaussian -blur 0x8 -brightness-contrast -10x-10 "${WALLPAPER}" "${BLURRED_WALLPAPER}"
convert -gravity center -composite "${BLURRED_WALLPAPER}" /home/bascht/Pictures/Wallpapers/lock.png "${BLURRED_WALLPAPER}"
fi;
swaylock --show-failed-attempts --indicator-thickness 10 --indicator-radius 130 -i "${BLURRED_WALLPAPER}" $1
thinkpad-dock