From 52e15e642258a56166c62efe33fd40a773f97fec Mon Sep 17 00:00:00 2001 From: Chandler J Date: Sat, 27 Jan 2024 13:59:22 -0700 Subject: rofi initializer progress --- src/initialize_rofi.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/initialize_rofi.py') diff --git a/src/initialize_rofi.py b/src/initialize_rofi.py index 972fad5..621e665 100644 --- a/src/initialize_rofi.py +++ b/src/initialize_rofi.py @@ -7,14 +7,23 @@ def initializeRofi() -> None: """ print('[bold red]Initializing Rofi Theme') - uname = os.getlogin() - - + uname: str = os.getlogin() # copy the default config from data to .config - + configPath = f'/home/{uname}/.config/rofi/' + dirExists = os.path.isdir(configPath) + if dirExists: + print('path exists') + if os.path.exists(f'{configPath}config.rasi'): + print('config present') + else: + # create the rasi config + pass + else: + print('path doesnt exist') # 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) + print(dirExists) initializeRofi() -- cgit v1.2.3