fonts and themes copy to system now
This commit is contained in:
+9
-2
@@ -61,7 +61,9 @@ def main():
|
||||
install_programs_dnf()
|
||||
zsh_fonts()
|
||||
hyprland()
|
||||
msic_configs()
|
||||
|
||||
#This should not need sudo
|
||||
# Pass D or L to copy_dotfiles function
|
||||
while (True):
|
||||
console.print('Set up dotfiles for Desktop (D) or Laptop (L) ?', style='promp')
|
||||
@@ -71,7 +73,6 @@ def main():
|
||||
break
|
||||
|
||||
executable_scripts()
|
||||
msic_configs()
|
||||
systemd()
|
||||
|
||||
#correcting ownership
|
||||
@@ -268,7 +269,7 @@ def executable_scripts():
|
||||
console.print("Job done :heavy_check_mark:", style='ok')
|
||||
logger.info('Made scripts in .config executable')
|
||||
|
||||
|
||||
#need sudo
|
||||
def msic_configs():
|
||||
console.rule('Setting up final configs', style='checkt')
|
||||
|
||||
@@ -288,6 +289,9 @@ def msic_configs():
|
||||
except Exception as e:
|
||||
print(f"Failed to clone repository: {e}")
|
||||
|
||||
# to system
|
||||
shutil.copytree(home+"/.fonts",'/usr/share/fonts/', dirs_exist_ok=True)
|
||||
|
||||
console.print("Fonts downloaded :heavy_check_mark:", style='ok')
|
||||
logger.info('Fonts donwloaded ')
|
||||
|
||||
@@ -305,6 +309,9 @@ def msic_configs():
|
||||
gdown.download(file, output ,quiet=False)
|
||||
subprocess.run(f"unzip {output} -d {os.path.join(home,'.themes')}", shell=True, stdout=subprocess.DEVNULL)
|
||||
|
||||
# to system
|
||||
shutil.copytree(home+"/.themes",'/usr/share/themes/', dirs_exist_ok=True)
|
||||
|
||||
console.print("Themes have been downloaded :heavy_check_mark:", style='ok')
|
||||
logger.info('Themes have been downloaded')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user