summaryrefslogtreecommitdiff
path: root/src/instant_rice.py
blob: 5076a6b032ebcf92ba5fbe5a4009deb5fcc62c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import sys
import user_interface
import update_rofi
import update_i3
import update_polybar
from get_args import get_args,usage
from load_config import systemConfig      

if __name__ == '__main__':

    if len(sys.argv) > 1:
        config = systemConfig()
        img_path, initialize, reconfigure = get_args(sys.argv, config.wallpaper_directory) 
        hex_colors, hex_compliments = user_interface.colorPickerUI(img_path, config.num_palettes)
        if config.polybar_config != "": 
            update_polybar.updatePolybarTheme(config.polybar_config, hex_colors, hex_compliments)
        if config.rofi_config != "":
            update_rofi.updateRofiTheme(config.rofi_config, hex_colors, hex_compliments)
        if config.i3_config:
            update_i3.updatei3Theme(config.i3_config, img_path, hex_colors, hex_compliments, config.generate_i3_lock, config.use_dmenu, config.i3_lock_image)
    else:
        usage(sys.argv)