Created
December 15, 2015 21:49
-
-
Save meepoSenpai/12620562b969a3106dae to your computer and use it in GitHub Desktop.
Fancy Lockscreen script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 -d 1 $IMAGE | |
convert $IMAGE -level 0%,100%,0.6 -blur $BLURTYPE -font Liberation-Sans -pointsize 26 -fill white -gravity center -annotate +0+200 'Type password to unlock' - | composite -gravity center /home/ian/Documents/shell/i3lock-fancy/lock.png - $IMAGE | |
i3lock --textcolor=ffffff00 --insidecolor=ffffff1c --ringcolor=ffffff3e --linecolor=ffffff00 --keyhlcolor=00000080 --ringvercolor=00000000 --insidevercolor=0000001c --ringwrongcolor=00000055 --insidewrongcolor=0000001c -i $IMAGE | |
rm $IMAGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment