Giter Site home page Giter Site logo

bst27 / dynamic-wallpaper Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 287 KB

Receive great wallpapers from online sources. Use cron expressions to define change interval.

License: MIT License

Go 45.99% Shell 54.01%
wallpaper wallpaper-changer unsplash golang dynamicwallpaper 100daysofcode dynamic-wallpaper wallpapers cron cron-expression

dynamic-wallpaper's Introduction

dynamicWallpaper

About

This app changes your wallpaper. You can give an URL to define where to get the wallpaper(s) from. To define when to change your wallpaper you can use a cron expression.

Per default your wallpaper is changed every minute with a random image from Unsplash.

Usage:

./dynamic-wallpaper -url "<URL>" -cron "<CRON>"

You can pass a help argument to view a help message:

  -cron string
        Cron expression which defines when to change wallpaper (default "* * * * *")
  -url string
        URL which returns a wallpaper image (default "https://source.unsplash.com/random/1920x1080")

Examples

URL Info See
https://source.unsplash.com/random/1920x1080 Get random image with 1920x1080px from Unsplash https://source.unsplash.com/
https://loremflickr.com/1920/1080/dog Get random dog image with 1920x1080px https://loremflickr.com/
Cron Info
* * * * * Change wallpaper at every minute
15 9 * * * Change wallpaper at 09:15 every day
0 6 * * 1 Change wallpaper at 06:00 on monday

To fiddle around with cron expressions you can use crontab.guru.

Build

To build executables for multiple platforms you can use the build script at scripts/build.sh.

dynamic-wallpaper's People

Contributors

bst27 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.