Last active
July 30, 2016 11:06
-
-
Save TomJamesGray/09ccdeaa6b94ddad1f39e235839f08a6 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
scr='/tmp/screenshot.png' | |
icon="$HOME/.config/lock-icon.png" | |
# To change the font used add `-font $font` | |
# After pointsize in the 'add fortune text section' | |
font="$HOME/.local/share/fonts/Aller_Lt.ttf" | |
fortune=$(expand -t 2 <(fortune -s)) | |
gradientColor='#E84C3D' | |
gradientDimensions='1920x540' | |
scrot "$scr" | |
convert "$scr" -scale 10% -scale 1000%\ | |
-size "$gradientDimensions" -gravity south-west \ | |
gradient:none-"$gradientColor" -composite -matte \ | |
"$icon" -gravity west -geometry +832+36 -composite -matte \ | |
-gravity center -pointsize 20 -font "$font" \ | |
-fill "#EAE4D1" -annotate -800+220 "$fortune" "$scr" | |
i3lock -i "$scr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment