Massively rework wallpaper script

Now runs automatically every 15 minutes, always updates to new backgrounds, and tries to reduce the blue light level at night
This commit is contained in:
Michael Bradley 2025-06-09 00:07:31 -04:00
parent c1c8a83ec5
commit 8bee11d5fb
Signed by: MichaelBradley
SSH key fingerprint: SHA256:BKO2eI2LPsCbQS3n3i5SdwZTAIV3F1lHezR07qP+Ob0
10 changed files with 262 additions and 65 deletions

20
scripts/wallpaper.py Executable file
View file

@ -0,0 +1,20 @@
#!/bin/env python
from argparse import ArgumentParser, Namespace
from typing import cast
from lib.wallpaper import main
class Arguments(Namespace):
check_steam: bool = False
def call_from_args() -> None:
parser = ArgumentParser(description="Adjusts the wallpaper based on the time of day")
_ = parser.add_argument("-s", "--check-steam", action="store_true", help="Don't adjust the wallpaper if Steam is active")
args = cast(Arguments, parser.parse_args())
main(args.check_steam)
if __name__ == "__main__":
call_from_args()