diff options
| author | Chandler J <cjustice2000@gmail.com> | 2023-12-11 20:38:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 20:38:07 -0700 |
| commit | c11972edf3e08112d94083f0d3ccb7abec77df19 (patch) | |
| tree | 9fa7aef82b2fe2ad0f457acc7c821f14c1eef7d1 /src/instant_rice.py | |
| parent | f029061dad768be5e7c39c1f6152660a0bbaf050 (diff) | |
| parent | c8f2a2635ec90499bd2ec75969f222f398c1bbc5 (diff) | |
Merge pull request #1 from chandlerj/refactor
Refactor
Diffstat (limited to 'src/instant_rice.py')
| -rw-r--r-- | src/instant_rice.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/instant_rice.py b/src/instant_rice.py new file mode 100644 index 0000000..6d02be6 --- /dev/null +++ b/src/instant_rice.py @@ -0,0 +1,26 @@ +import sys +import color_engine +import user_interface +import update_rofi +import update_i3 +import update_polybar +from get_args import get_args +from paths import Paths + +def main(): + img_path = 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_dmenu = True if ('-dmenu' in sys.argv) else False + 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 __name__ == '__main__': + main() |
