43 lines
1016 B
Markdown
43 lines
1016 B
Markdown
Get a wallpaper based on the time of day. You can get some wallpapers at [Dynamic wallpaper club](https://www.dynamicwallpaper.club/gallery).
|
|
|
|
# Usage
|
|
|
|
`sunset --file sunset.json` Get the current image to set as a walpaper.
|
|
|
|
`sunset --file sunset.json --next` Get the time when the next wallpaper should be set.
|
|
|
|
`sunset --file sunset.json --wait` How long to wait to set the next wallpaper.
|
|
|
|
If no `file` is provided then it defaults to `./sunset.json`.
|
|
|
|
# Sunset.json
|
|
|
|
The sunset file must be structured like this:
|
|
```json
|
|
{
|
|
"files": [
|
|
{
|
|
"file":"Ghib-0.jpg",
|
|
"time":"9:30"
|
|
},
|
|
{
|
|
"file":"Ghib-1.jpg",
|
|
"time":"19:30"
|
|
},
|
|
{
|
|
"file":"Ghib-2.jpg",
|
|
"time":"8:00"
|
|
},
|
|
{
|
|
"file":"Ghib-3.jpg",
|
|
"time":"18:00"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
# Convert heic file to jpeg
|
|
|
|
You need imagemagick.
|
|
|
|
`mogrify -format jpg Ghib.heic` or `identify Ghib.heic | wc -l` to count the images. |