diff options
| author | Chandler J <cjustice2000@gmail.com> | 2024-01-26 23:42:16 -0700 |
|---|---|---|
| committer | Chandler J <cjustice2000@gmail.com> | 2024-01-26 23:42:16 -0700 |
| commit | 1be4c39b4367004cd44a5cfe1f64308f39e91a48 (patch) | |
| tree | f12a1989a863982778ae33f9a7b09154abee82b8 /src | |
| parent | 007e7076c7404c86180ff3aa6ea3fe15024a87c3 (diff) | |
began adding rofi initializer
Diffstat (limited to 'src')
| -rw-r--r-- | src/initialize_rofi.py | 20 | ||||
| -rw-r--r-- | src/paths.py | 3 | ||||
| -rw-r--r-- | src/update_polybar.py | 2 | ||||
| -rw-r--r-- | src/update_rofi.py | 6 |
4 files changed, 27 insertions, 4 deletions
diff --git a/src/initialize_rofi.py b/src/initialize_rofi.py new file mode 100644 index 0000000..972fad5 --- /dev/null +++ b/src/initialize_rofi.py @@ -0,0 +1,20 @@ +from rich import print +import os +def initializeRofi() -> None: + """ + Create a Rofi theme if one is not present with desired defaults to work with InstantRice. + Will pull source file from data dir + """ + print('[bold red]Initializing Rofi Theme') + + uname = os.getlogin() + + + # copy the default config from data to .config + + # add line to rofi config + # (this means we need might need to make the rofi config file, and the rofi directory) + # (it also will be necessary to grab the current user's username to access their .config) + print(uname) + +initializeRofi() diff --git a/src/paths.py b/src/paths.py index 7ad287b..db3d0ce 100644 --- a/src/paths.py +++ b/src/paths.py @@ -2,5 +2,6 @@ Paths = { 'i3': '/home/chandler/.config/i3/config', 'polybar': '/home/chandler/.config/polybar/config.ini', 'wallpapers': '/home/chandler/Pictures/papes/', - 'lockscreen': '/home/chandler/.config/i3/' + 'lockscreen': '/home/chandler/.config/i3/', + 'rofi': '/home/chandler/.config/rofi/activetheme.rasi' } diff --git a/src/update_polybar.py b/src/update_polybar.py index 2c1a3e0..97be44a 100644 --- a/src/update_polybar.py +++ b/src/update_polybar.py @@ -1,4 +1,4 @@ - +from rich import print def updatePolybarTheme(config_path: str, colors: list, compliments: list) -> None: print('[bold red]Updating polybar color scheme') diff --git a/src/update_rofi.py b/src/update_rofi.py index 88e3289..fb2100c 100644 --- a/src/update_rofi.py +++ b/src/update_rofi.py @@ -1,4 +1,5 @@ import color_engine +from rich import print def updateRofiTheme(config_path: str, colors: list, compliments: list) -> None: print('[bold red]Updating Rofi color scheme') @@ -14,10 +15,11 @@ def updateRofiTheme(config_path: str, colors: list, compliments: list) -> None: data[i] = ' background: rgba({}, {}, {}, 70%);\n'.format(bg[0], bg[1], bg[2]) if 'foreground: ' in line and i == 28: data[i] = ' foreground: rgba({}, {}, {}, 100%);\n'.format(fg[0], fg[1], fg[2]) - if 'lightbg: ' in line and i == 12: - data[i] = ' lightbg: rgba({}, {}, {}, 100%);\n'.format(lbg[0], lbg[1], lgb[2]) + if 'lightbg: ' in line and i == 11: + data[i] = ' lightbg: rgba({}, {}, {}, 100%);\n'.format(lbg[0], lbg[1], lbg[2]) if 'lightfg: ' in line and i == 7: data[i] = ' lightfg: rgba({}, {}, {}, 100%);\n'.format(lfg[0], lfg[1], lfg[2]) with open(config_path, 'w') as file: file.writelines(data) + |
