mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 12:29:19 -08:00
Change logging system to make it easier to get results from scheduled
task
This commit is contained in:
parent
fa08d92cf7
commit
f3ee0e19ff
7 changed files with 26 additions and 15 deletions
|
|
@ -10,7 +10,7 @@ Pre-setting on Windows
|
|||
@add_environment("win32_init")
|
||||
def init():
|
||||
os.system("color")
|
||||
logging.info("Initialized for a Windows environment")
|
||||
logging.debug("Initialized for a Windows environment")
|
||||
|
||||
"""
|
||||
This sets wallpapers on Windows.
|
||||
|
|
@ -20,9 +20,9 @@ This sets wallpapers on Windows.
|
|||
@add_environment("win32_setter")
|
||||
def set_wallpapers(files: list, displays: list):
|
||||
if len(files) > 1:
|
||||
logging.info("Several monitors detected, going the hard route")
|
||||
logging.debug("Several monitors detected, going the hard route")
|
||||
file = combine_to_viewport(displays, files)
|
||||
ctypes.windll.user32.SystemParametersInfoW(20, 0, file, 0)
|
||||
else:
|
||||
logging.info("Detected only one monitor, setting wallpaper simply")
|
||||
logging.debug("Detected only one monitor, setting wagilpaper simply")
|
||||
ctypes.windll.user32.SystemParametersInfoW(20, 0, files[0] , 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue