varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.2k stars 143 forks source link

Daytime/nighttime scheduler #468

Open ChrisTheWiz01 opened 2 years ago

ChrisTheWiz01 commented 2 years ago

It would be nice to be able to either tone down the brightness of the background or only choose darker pictures for nighttime. Preferably on a sunrise/sundown and/or time scheduler.

Jules3182 commented 2 years ago

I am currently working on a python script to do exactly that, Going to start off basic having it just chose between a morning day and night image but once I get that working I'll add in support to pick a random image from folders labeled for each.

peterlevi commented 2 years ago

This is not available out-of-the-box, but Variety provides sufficient hack-friendly options to get something like this working:

  1. Variety already supports filtering just light or dark images (see "Color and size"). Or you could have your dedicated categorized folders for this.

  2. The next part of the picture is some different configurations for day and night. You could get this by using profiles, please see this explanation here for how to use profiles: https://github.com/varietywalls/variety/issues/469#issuecomment-1107866145

  3. The third part is some more advanced scheduling - Variety does not provide this out of the box, but it provides a ton of scripting via the command-line, and Linux-native tools like Cron can provide the advanced scheduling. See https://github.com/varietywalls/variety/issues/486#issuecomment-1107874039 for an explanation how to get this working.

@ChrisTheWiz01 If you manage to combine all of these and get a nice setup working, please post the info here for what you did so others can benefit.

johnnynoone commented 10 months ago

I think an easier (no need to implement your own scheduler) and more user-friendly (user does not need to configure another scheduler) option is to add two new options to the dark/light images dropdown: