X Tutup
Skip to content

bst27/dynamic-wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Picsum.

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://picsum.photos/1920/1080")

Examples

URL Info See
https://picsum.photos/1920/1080 Get random image with 1920x1080px from Picsum https://picsum.photos/
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.

Contributors

X Tutup