Skip to content

Instantly share code, notes, and snippets.

View TomJamesGray's full-sized avatar

Tom Gray TomJamesGray

  • London
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomjamesgray on github.
  • I am tomgray (https://keybase.io/tomgray) on keybase.
  • I have a public key ASAAb7ujq6tej2EvU1X6j4m-fJ1flOVem1xaQ_INzALvEgo

To claim this, I am signing this object:

#!/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'
@TomJamesGray
TomJamesGray / lockMultiMonitor.py
Created March 14, 2016 16:29
Shows additional config required for multi monitor fortune-lock
#!/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