Added lock script, images and screenshot
This commit is contained in:
22
lock
Executable file
22
lock
Executable 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
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
Reference in New Issue
Block a user