|
| 1 | +import logging |
1 | 2 | import time
|
2 | 3 | import os
|
3 | 4 | import argparse
|
|
51 | 52 | # Get config from file
|
52 | 53 | config = utils.Configs(args)
|
53 | 54 | options_old = config.options
|
54 |
| - print(f"Config: {options_old}") |
| 55 | + logging.debug(f"Config: {options_old}") |
55 | 56 | icons_old = [options_old['iconslight'], options_old['iconsdark']]
|
56 | 57 | light_old = options_old['light']
|
57 | 58 | # Get the current wallpaper on startup
|
58 | 59 | wallpaper_old = utils.currentWallpaper(options_old)
|
59 | 60 | kde_globals_light_old=utils.kde_globals_light()
|
60 | 61 | pywal_light_old=options_old['pywal_light']
|
61 | 62 | konsole_profile_old=options_old['konsole_profile']
|
62 |
| - print(konsole_profile_old) |
63 | 63 | konsole_profile_mod_time_old = None
|
64 | 64 | if konsole_profile_old != None:
|
65 | 65 | konsole_profile_mod_time_old = utils.get_last_modification(utils.KONSOLE_DIR+konsole_profile_old+".profile")
|
66 | 66 | if wallpaper_old != None and wallpaper_old[1] != None:
|
67 | 67 | wallpaper_old_type = wallpaper_old[0]
|
68 | 68 | wallpaper_old_data = wallpaper_old[1]
|
69 |
| - print(f'Using wallpaper: {wallpaper_old_data}') |
| 69 | + logging.info(f'Using wallpaper: {wallpaper_old_data}') |
70 | 70 | colors = utils.get_color_schemes(wallpaper_old,options_old['ncolor'])
|
71 | 71 |
|
72 | 72 | # if wallpaper is image save time of last modification
|
|
75 | 75 | else:
|
76 | 76 | wallpaper_mod_time_old = None
|
77 | 77 |
|
78 |
| - light = None |
| 78 | + light = False |
79 | 79 | if options_old['light'] == None:
|
80 | 80 | if kde_globals_light_old != None:
|
81 | 81 | light=kde_globals_light_old
|
|
131 | 131 | pywal_light_changed = pywal_light_old != pywal_light_new
|
132 | 132 | konsole_profile_changed = konsole_profile_old != konsole_profile_new
|
133 | 133 | konsole_profile_modified = konsole_profile_mod_time_new != konsole_profile_mod_time_old
|
134 |
| - |
| 134 | + light=False |
135 | 135 | if options_new['light'] == None:
|
136 | 136 | if kde_globals_light_new != None:
|
137 | 137 | light=kde_globals_light_new
|
|
143 | 143 |
|
144 | 144 | if wallpaper_changed or options_changed or wallpaper_modified:
|
145 | 145 | if wallpaper_changed or wallpaper_modified:
|
146 |
| - print(f'Wallpaper changed: {wallpaper_new_data}') |
| 146 | + logging.info(f'Wallpaper changed: {wallpaper_new_data}') |
147 | 147 | if options_changed:
|
148 |
| - print(f"New Config: {options_new}") |
| 148 | + logging.debug(f"New Config: {options_new}") |
149 | 149 | colors = utils.get_color_schemes(wallpaper_new,options_new['ncolor'])
|
150 | 150 | if colors != None:
|
151 | 151 | schemes = ThemeConfig(colors,wallpaper_new_data,light_blend_multiplier=options_new['lbm'], dark_blend_multiplier=options_new['dbm'])
|
|
0 commit comments