Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #depends on: imagemagick, i3lock, scrot
- IMAGE=/tmp/lockscreen.png
- TEXT=/tmp/locktext.png
- ICON=/home/badel/Pictures/Icons/Lock-icon.png
- scrot $IMAGE
- convert $IMAGE -scale 10% -scale 1000% -fill black -colorize 25% $IMAGE
- [ -f $TEXT ] || {
- convert -size 3000x60 xc:white -font Liberation-Sans -pointsize 26 -fill black -gravity center -annotate +0+0 'Type password to unlock' $TEXT;
- convert $TEXT -alpha set -channel A -evaluate set 50% $TEXT;
- }
- convert $IMAGE $TEXT -gravity center -geometry +0+200 -composite $IMAGE
- convert $IMAGE $ICON -gravity center -composite -matte $IMAGE
- i3lock -u -i $IMAGE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement