little wallpaper generator written in go, that uses https://unsplash.com/ to download an random wallpaper and adds some text to it.
$ go get github.com/microo8/wallgen
$ wallgen -t "hello github"
Usage of wallgen:
-dpi int
DPI for the text (default 100)
-font-size int
Font size for the text (default 120)
-h int
height of the image (default 1080)
-o string
output file (default "wallpaper.png")
-t string
printed text (default "MEH")
-w int
width of the image (default 1920)
You can use it eg. in your i3 config (generates a new wallpaper on every login):
exec_always --no-startup-id /home/$USER/go/bin/wallgen -t "My favorite quote" -o /home/$USER/.wallpaper.jpg
exec_always --no-startup-id feh --bg-fill /home/$USER/.wallpaper.jpg