diff options
Diffstat (limited to 'src/initialize_rofi.py')
| -rw-r--r-- | src/initialize_rofi.py | 17 |
1 files changed, 13 insertions, 4 deletions
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() |
