Added lock script, images and screenshot

This commit is contained in:
Dolores Portalatin
2014-11-08 16:18:35 -05:00
parent bdc0ae0a5f
commit c30e0f37d7
3 changed files with 22 additions and 0 deletions

22
lock Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Dependencies:
# imagemagick
# i3lock-color-git
# scrot
IMAGE=/tmp/i3lock.png
# All options are here: http://www.imagemagick.org/Usage/blur/#blur_args
#BLURTYPE="0x5" # 7.52s
#BLURTYPE="0x2" # 4.39s
BLURTYPE="5x3" # 3.80s
#BLURTYPE="2x8" # 2.90s
#BLURTYPE="2x3" # 2.92s
scrot $IMAGE
convert $IMAGE -blur $BLURTYPE $IMAGE
composite -gravity center lock.png $IMAGE $IMAGE
convert $IMAGE -font Liberation-Sans -pointsize 26 -fill white -gravity center -annotate +0+200 'Type password to unlock' $IMAGE
i3lock --textcolor=ffffff00 --insidecolor=ffffff1c --ringcolor=ffffff3e --linecolor=ffffff00 --keyhlcolor=00000080 --ringvercolor=00000000 --insidevercolor=0000001c --ringwrongcolor=00000055 --insidewrongcolor=0000001c -i $IMAGE
rm $IMAGE

BIN
lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB