Add new lockscreen script with blurred background

This commit is contained in:
Wiktor Zykubek 2020-04-09 21:36:44 +02:00
parent d29e85b6a3
commit 4c98ffbae2
2 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,11 @@
#!/bin/zsh #!/usr/bin/env sh
RESOL=$(xrandr | grep '*' | grep -o '?*[0-9]*x?*[0-9]*') mkdir ~/.cache/lock/
f="$HOME/.cache/lock/lock.jpg"
i3lock -i ~/.config/wallpapers/$RESOL/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/$RESOL | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 --bar-indicator maim -u -m 7 -f jpg "$f"
convert "$f" -blur 0x6 "$f"
i3lock -i "$f" --composite --insidecolor=55443311 --ringcolor=99443300 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000
rm "$f"

View File

@ -0,0 +1,5 @@
#!/bin/zsh
RESOL=$(xrandr | grep '*' | grep -o '?*[0-9]*x?*[0-9]*')
i3lock -i ~/.config/wallpapers/$RESOL/wall$(( ( RANDOM % $(ls ~/.config/wallpapers/$RESOL | wc -l) +1 ) )).png --composite --insidecolor=55443311 --ringcolor=99443300 --insidevercolor=55443311 --keyhlcolor=99999999 --indicator --veriftext= --wrongtext=! --radius 180 -b --separatorcolor=00000000 --bar-indicator