Advertisement
Guest User

i3lock by badel

a guest
Apr 20th, 2015
3,627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #depends on: imagemagick, i3lock, scrot
  4.  
  5. IMAGE=/tmp/lockscreen.png
  6. TEXT=/tmp/locktext.png
  7. ICON=/home/badel/Pictures/Icons/Lock-icon.png
  8.  
  9. scrot $IMAGE
  10. convert $IMAGE -scale 10% -scale 1000% -fill black -colorize 25% $IMAGE
  11. [ -f $TEXT ] || {
  12. convert -size 3000x60 xc:white -font Liberation-Sans -pointsize 26 -fill black -gravity center -annotate +0+0 'Type password to unlock' $TEXT;
  13. convert $TEXT -alpha set -channel A -evaluate set 50% $TEXT;
  14. }
  15. convert $IMAGE $TEXT -gravity center -geometry +0+200 -composite $IMAGE
  16. convert $IMAGE $ICON -gravity center -composite -matte $IMAGE
  17. i3lock -u -i $IMAGE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement