Created
March 14, 2016 16:29
-
-
Save TomJamesGray/da2e9e4440d2dca6701c to your computer and use it in GitHub Desktop.
Shows additional config required for multi monitor fortune-lock
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=$(fortune -s) | |
gradientColor='#E84C3D' | |
gradientDimensions='1600x450' | |
#The main difference is the geometry on line 15 and annotate on line 17, this can be adjusted to position correctly | |
scrot "$scr" | |
convert "$scr" -scale 10% -scale 1000%\ | |
-size "$gradientDimensions" -gravity south-west \ | |
gradient:none-"$gradientColor" -composite -matte \ | |
"$icon" -gravity west -geometry +672+36 -composite -matte \ | |
-gravity center -pointsize 20 -font "$font" \ | |
-fill "#EAE4D1" -annotate -512+220 "$fortune" "$scr" | |
i3lock -ui "$scr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment