summaryrefslogtreecommitdiff
path: root/src/update_rofi.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-01-26 23:42:16 -0700
committerChandler J <cjustice2000@gmail.com>2024-01-26 23:42:16 -0700
commit1be4c39b4367004cd44a5cfe1f64308f39e91a48 (patch)
treef12a1989a863982778ae33f9a7b09154abee82b8 /src/update_rofi.py
parent007e7076c7404c86180ff3aa6ea3fe15024a87c3 (diff)
began adding rofi initializer
Diffstat (limited to 'src/update_rofi.py')
-rw-r--r--src/update_rofi.py6
1 files changed, 4 insertions, 2 deletions
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)
+