diff options
| author | Chandler J <cjustice2000@gmail.com> | 2024-01-27 13:59:22 -0700 |
|---|---|---|
| committer | Chandler J <cjustice2000@gmail.com> | 2024-01-27 13:59:22 -0700 |
| commit | 52e15e642258a56166c62efe33fd40a773f97fec (patch) | |
| tree | 787307b48c451bb1d534d95548facbf685156f8a /src/initialize_rofi.py | |
| parent | 1be4c39b4367004cd44a5cfe1f64308f39e91a48 (diff) | |
rofi initializer progress
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() |
