summaryrefslogtreecommitdiff
path: root/src/load_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/load_config.py')
-rw-r--r--src/load_config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/load_config.py b/src/load_config.py
index dbc0d81..5768b3e 100644
--- a/src/load_config.py
+++ b/src/load_config.py
@@ -20,6 +20,7 @@ class systemConfig:
num_palettes = 15
use_dmenu = False
generate_i3_lock = False
+ theme_directory = ""
def __init__(self):
print('[bold green]Loading configuration files')
@@ -36,6 +37,7 @@ class systemConfig:
self.polybar_config = f'/home/{self.username}/.config/polybar/config.ini'
if os.path.exists(f'/home/{self.username}/.config/rofi/config.rasi'):
self.rofi_config = f'/home/{self.username}/.config/rofi/config.rasi'
+
if os.path.exists(f'/home/{self.username}/.config/instantrice/'):
self.rice_config = f'/home/{self.username}/.config/instantrice/config.rice'
self.get_user_preferences()
@@ -80,3 +82,8 @@ class systemConfig:
else:
print(f'Invalid configuration parameter at line {i}:\n{line}.\nUsing default \
configuration of 15 palettes.')
+ if "theme_directory" in line:
+ match = line.strip().split(' ')
+ if not match[2].endswith('/'):
+ match[2] += '/'
+ self.theme_directory = match[2]