Skip to content

yosmoc/wallgen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wallgen

little wallpaper generator written in go, that uses https://unsplash.com/ to download an random wallpaper and adds some text to it.

install

$ go get github.com/microo8/wallgen

wallpaper generation

$ 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)

example

wallpaper example

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

About

little wallpaper generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%