Now runs automatically every 15 minutes, always updates to new backgrounds, and tries to reduce the blue light level at night
20 lines
536 B
Python
Executable file
20 lines
536 B
Python
Executable file
#!/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()
|