fonts and themes copy to system now
This commit is contained in:
+11
-4
@@ -61,7 +61,9 @@ def main():
|
|||||||
install_programs_dnf()
|
install_programs_dnf()
|
||||||
zsh_fonts()
|
zsh_fonts()
|
||||||
hyprland()
|
hyprland()
|
||||||
|
msic_configs()
|
||||||
|
|
||||||
|
#This should not need sudo
|
||||||
# Pass D or L to copy_dotfiles function
|
# Pass D or L to copy_dotfiles function
|
||||||
while (True):
|
while (True):
|
||||||
console.print('Set up dotfiles for Desktop (D) or Laptop (L) ?', style='promp')
|
console.print('Set up dotfiles for Desktop (D) or Laptop (L) ?', style='promp')
|
||||||
@@ -71,7 +73,6 @@ def main():
|
|||||||
break
|
break
|
||||||
|
|
||||||
executable_scripts()
|
executable_scripts()
|
||||||
msic_configs()
|
|
||||||
systemd()
|
systemd()
|
||||||
|
|
||||||
#correcting ownership
|
#correcting ownership
|
||||||
@@ -268,7 +269,7 @@ def executable_scripts():
|
|||||||
console.print("Job done :heavy_check_mark:", style='ok')
|
console.print("Job done :heavy_check_mark:", style='ok')
|
||||||
logger.info('Made scripts in .config executable')
|
logger.info('Made scripts in .config executable')
|
||||||
|
|
||||||
|
#need sudo
|
||||||
def msic_configs():
|
def msic_configs():
|
||||||
console.rule('Setting up final configs', style='checkt')
|
console.rule('Setting up final configs', style='checkt')
|
||||||
|
|
||||||
@@ -287,6 +288,9 @@ def msic_configs():
|
|||||||
Repo.clone_from(fonts_url, fonts_dir)
|
Repo.clone_from(fonts_url, fonts_dir)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Failed to clone repository: {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')
|
console.print("Fonts downloaded :heavy_check_mark:", style='ok')
|
||||||
logger.info('Fonts donwloaded ')
|
logger.info('Fonts donwloaded ')
|
||||||
@@ -305,6 +309,9 @@ def msic_configs():
|
|||||||
gdown.download(file, output ,quiet=False)
|
gdown.download(file, output ,quiet=False)
|
||||||
subprocess.run(f"unzip {output} -d {os.path.join(home,'.themes')}", shell=True, stdout=subprocess.DEVNULL)
|
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')
|
console.print("Themes have been downloaded :heavy_check_mark:", style='ok')
|
||||||
logger.info('Themes have been downloaded')
|
logger.info('Themes have been downloaded')
|
||||||
|
|
||||||
@@ -327,7 +334,7 @@ def msic_configs():
|
|||||||
try:
|
try:
|
||||||
subprocess.run('dnf swap ffmpeg-free ffmpeg --allowerasing', shell=True)
|
subprocess.run('dnf swap ffmpeg-free ffmpeg --allowerasing', shell=True)
|
||||||
subprocess.run('dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin', shell=True)
|
subprocess.run('dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin', shell=True)
|
||||||
subprocess.run(' dnf update @sound-and-video', shell=True)
|
subprocess.run('dnf update @sound-and-video', shell=True)
|
||||||
|
|
||||||
console.print("ffmpeg non free installed + all codecs :heavy_check_mark:", style='ok')
|
console.print("ffmpeg non free installed + all codecs :heavy_check_mark:", style='ok')
|
||||||
logger.info('ffmpeg non free installed + all codecs ')
|
logger.info('ffmpeg non free installed + all codecs ')
|
||||||
|
|||||||
Reference in New Issue
Block a user