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:
parent
c1c8a83ec5
commit
8bee11d5fb
10 changed files with 262 additions and 65 deletions
20
scripts/wallpaper.py
Executable file
20
scripts/wallpaper.py
Executable 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()
|
Loading…
Add table
Add a link
Reference in a new issue