From 95e73b141ca8f3618701ff59658ef519353cc7c0 Mon Sep 17 00:00:00 2001 From: Chandler J Date: Fri, 12 Apr 2024 20:44:47 -0600 Subject: major changes: - Can now save/load themes which entails the color scheme and wallpaper - Can now use themes to load colors independent of background image - refactoring to make code less bad --- src/update_i3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/update_i3.py') diff --git a/src/update_i3.py b/src/update_i3.py index 1d4b792..f0282c8 100644 --- a/src/update_i3.py +++ b/src/update_i3.py @@ -51,11 +51,12 @@ def update_i3_colors( dmenu: bool, img_path: str ) -> None: + data = '' + with open(config_path, 'r') as file: data = file.readlines() - for i, line in enumerate(data): # update colors if "set $bgcolor" in line: -- cgit v1.2.3