From 4a26423d48052b9eeb155f8fa2deef4c474ea211 Mon Sep 17 00:00:00 2001 From: mal0 Date: Mon, 29 Jul 2024 00:43:54 -0400 Subject: [PATCH] now sets flatpak and gtk theme + icon --- rice-cook.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rice-cook.py b/rice-cook.py index 1fc479f..57813c6 100755 --- a/rice-cook.py +++ b/rice-cook.py @@ -307,6 +307,18 @@ def msic_configs(): console.print("Themes have been downloaded :heavy_check_mark:", style='ok') logger.info('Themes have been downloaded') + ## Set themes Gtk + subprocess.run("gsettings set org.gnome.desktop.interface icon-theme 'candy-icons'", shell=True) + subprocess.run("gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Macchiato-Standard-Blue-Dark'", shell=True) + subprocess.run("gsettings set org.gnome.desktop.interface font-name 'Roboto-Regular'", shell=True) + + #Flatpak force theme + subprocess.run("flatpak override --filesystem=$HOME/.themes", shell=True) + subprocess.run("flatpak override --env=GTK_THEME=Catppuccin-Macchiato-Standard-Blue-Dark", shell=True) + console.print("Themes have been Set :heavy_check_mark:", style='ok') + logger.info('Themes have been Set') + + except Exception as e: logging.critical(f"Could not get themes :{str(e)}")