From cedd83eca342cffb63d1342cf2b6c1fabe521e3b Mon Sep 17 00:00:00 2001 From: FreddyFunk <27208977+FreddyFunk@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:56:51 +0200 Subject: [PATCH 1/4] install.sh: added DEBUGMODE "auto" which installs and applies the KDE without user interaction --- install.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 195b96b..267f7df 100755 --- a/install.sh +++ b/install.sh @@ -401,6 +401,10 @@ case "$DEBUGMODE" in read -r CONFIRMATION clear ;; + auto) + CONFIRMATION=Y + clear + ;; aurorae) InstallAuroraeTheme exit @@ -443,10 +447,12 @@ if [ "$CONFIRMATION" = "Y" ] || [ "$CONFIRMATION" = "y" ]; then echo "Cleaning up.." rm -r ./dist - # Apply theme - echo - echo "Do you want to apply theme? [y/N]:" - read -r CONFIRMATION + if [ "$DEBUGMODE" != "auto" ]; then + # Apply theme + echo + echo "Do you want to apply theme? [y/N]:" + read -r CONFIRMATION + fi if [ "$CONFIRMATION" = "Y" ] || [ "$CONFIRMATION" = "y" ]; then lookandfeeltool -a "$GLOBALTHEMENAME" From f5b6329aa85ebe0c23a39967d8300c8e493246ea Mon Sep 17 00:00:00 2001 From: FreddyFunk <27208977+FreddyFunk@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:02:20 +0200 Subject: [PATCH 2/4] update readme for automated installation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 594c819..113e09a 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,14 @@ 1. `git clone --depth=1 https://github.com/catppuccin/kde catppuccin-kde && cd catppuccin-kde` 2. Run the install script using `./install.sh` and follow the instructions. +#### Automated Installation +You can install the KDE theme without interactions by calling the script with the following arguments: + +`./install.sh flavour accent window_decoration_mode auto` + +Example: +`./install.sh Mocha Blue Classic auto` + ### For Krita: 1. Download the colour-scheme zip file for your preffered flavour from the [release](https://github.com/catppuccin/kde/releases/) tab. 2. Extract the file and move the theme(s) you wish to install into the following folders for your platform: From 7c1f0419877ecb0a6938d27643f5b6e77e1b6307 Mon Sep 17 00:00:00 2001 From: FreddyFunk <27208977+FreddyFunk@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:16:31 +0200 Subject: [PATCH 3/4] replace spaces with taps --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 267f7df..8538f36 100755 --- a/install.sh +++ b/install.sh @@ -401,10 +401,10 @@ case "$DEBUGMODE" in read -r CONFIRMATION clear ;; - auto) - CONFIRMATION=Y - clear - ;; + auto) + CONFIRMATION=Y + clear + ;; aurorae) InstallAuroraeTheme exit From eb79345e2ad86243cd8e266df34129644561507d Mon Sep 17 00:00:00 2001 From: Frederic Laing Date: Wed, 9 Oct 2024 23:56:41 +0200 Subject: [PATCH 4/4] address feedback from Discord and use "-y" instead of "auto". --- install.sh | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 8538f36..14e60f5 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,9 @@ ACCENT="$2" WINDECSTYLE="$3" DEBUGMODE="$4" -clear +if [ "$DEBUGMODE" != "-y" ]; then + clear +fi if [ -z "$1" ]; then cat <