Created
May 29, 2015 19:48
-
-
Save powerswitch/8d686e8c716ca4cfc2b3 to your computer and use it in GitHub Desktop.
Create a screenshot, color it, blur it and lock the screen.
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 | |
IMAGE=/tmp/i3lock.png | |
# All options are here: http://www.imagemagick.org/Usage/blur/#blur_args | |
BLURTYPE="0x3" # 7.52s | |
#BLURTYPE="0x2" # 4.39s | |
#BLURTYPE="5x3" # 3.80s | |
#BLURTYPE="2x8" # 2.90s | |
#BLURTYPE="2x3" # 2.92s | |
import -window root jpeg:- | convert - +level 20%,80%,0.6 -colorspace gray -fill "#DDDDFF" -tint 100 -blur $BLURTYPE -font Liberation-Sans -pointsize 26 -fill white -gravity center -annotate +0+200 'Bitte Passwort eingeben' jpeg:- | composite -gravity center lock.png - $ | |
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