diff --git a/lock b/lock new file mode 100755 index 0000000..c88fbf9 --- /dev/null +++ b/lock @@ -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 diff --git a/lock.png b/lock.png new file mode 100644 index 0000000..e268624 Binary files /dev/null and b/lock.png differ diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..084b600 Binary files /dev/null and b/screenshot.png differ