blob: 621e6657942e8dfe8bdbc722935ca107bb4aecc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
from rich import print
import os
def initializeRofi() -> None:
"""
Create a Rofi theme if one is not present with desired defaults to work with InstantRice.
Will pull source file from data dir
"""
print('[bold red]Initializing Rofi Theme')
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()
|