diff options
| author | Chandler J <cjustice2000@gmail.com> | 2024-02-24 00:08:21 -0700 |
|---|---|---|
| committer | Chandler J <cjustice2000@gmail.com> | 2024-02-24 00:08:21 -0700 |
| commit | 4734634389cdbac0e0c9596a4c1737b4fb6c644d (patch) | |
| tree | cf713a2d62c82beb12c7384173ed7b2d323c1467 /src/instant_rice.py | |
| parent | e5171305479b4fe3fea8cdeff5cb8a2ed4e84967 (diff) | |
early stages of changing config plus license
Diffstat (limited to 'src/instant_rice.py')
| -rw-r--r-- | src/instant_rice.py | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/instant_rice.py b/src/instant_rice.py index a55f2c8..e0faa5e 100644 --- a/src/instant_rice.py +++ b/src/instant_rice.py @@ -1,20 +1,21 @@ import sys -import color_engine import user_interface import update_rofi import update_i3 import update_polybar -from get_args import get_args +from get_args import get_args,usage from paths import Paths if __name__ == '__main__': - img_path, update_dmenu, i3lock = get_args(sys.argv) - hex_colors, hex_compliments = user_interface.colorPickerUI(img_path) - - if 'polybar' in Paths: - update_polybar.updatePolybarTheme(Paths['polybar'], hex_colors, hex_compliments) - if 'rofi' in Paths: - update_rofi.updateRofiTheme(Paths['rofi'], hex_colors, hex_compliments) - if 'i3' in Paths: - generate_i3lock = False if ('--nolock' in sys.argv) else True - update_i3.updatei3Theme(Paths['i3'], img_path, hex_colors, hex_compliments, generate_i3lock, update_dmenu) + if len(sys.argv) > 1: + img_path, update_dmenu, nolock, initialize, reconfigure = get_args(sys.argv) + hex_colors, hex_compliments = user_interface.colorPickerUI(img_path) + + if 'polybar' in Paths: + update_polybar.updatePolybarTheme(Paths['polybar'], hex_colors, hex_compliments) + if 'rofi' in Paths: + update_rofi.updateRofiTheme(Paths['rofi'], hex_colors, hex_compliments) + if 'i3' in Paths: + update_i3.updatei3Theme(Paths['i3'], img_path, hex_colors, hex_compliments, nolock, update_dmenu) + else: + usage(sys.argv) |
