From f4c1210b72c3ab629c830da0b923d67891795596 Mon Sep 17 00:00:00 2001 From: dinckelman Date: Tue, 5 Mar 2024 21:06:12 +0100 Subject: [PATCH 1/6] Update install script to support KF6 --- Resources/LookAndFeel/metadata.json | 1 - Resources/splash-screen/metadata.json | 1 + install.sh | 56 ++++++++++++++++++++------- 3 files changed, 42 insertions(+), 16 deletions(-) diff --git a/Resources/LookAndFeel/metadata.json b/Resources/LookAndFeel/metadata.json index aa1c347..55a45f6 100644 --- a/Resources/LookAndFeel/metadata.json +++ b/Resources/LookAndFeel/metadata.json @@ -1,6 +1,5 @@ { "KPackageStructure": "Plasma/LookAndFeel", - "KPlugin": { "Authors": [ { diff --git a/Resources/splash-screen/metadata.json b/Resources/splash-screen/metadata.json index e234d8d..5b519ff 100644 --- a/Resources/splash-screen/metadata.json +++ b/Resources/splash-screen/metadata.json @@ -1,4 +1,5 @@ { + "KPackageStructure": "Plasma/LookAndFeel", "KPlugin": { "Authors": [ { diff --git a/install.sh b/install.sh index 689ef70..499695a 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Syntax +# Syntax check_command_exists() { command_name="$@" @@ -31,7 +31,6 @@ mkdir ./dist FLAVOUR="$1" ACCENT="$2" WINDECSTYLE="$3" - DEBUGMODE="$4" clear @@ -60,7 +59,7 @@ case "$FLAVOUR" in exit 1 ;; esac -echo "The palette $FLAVOURNAME($FLAVOUR) was selected" +echo "$FLAVOURNAME($FLAVOUR) palette was selected." echo if [ -z "$2" ]; then @@ -218,13 +217,14 @@ case "$ACCENT" in exit 1 ;; esac -echo "Accent $ACCENTNAME($ACCENT) was selected!" +echo "$ACCENTNAME($ACCENT) accent color was selected." GLOBALTHEMENAME="Catppuccin-$FLAVOURNAME-$ACCENTNAME" SPLASHSCREENNAME="Catppuccin-$FLAVOURNAME-$ACCENTNAME-splash" if [ -z "$3" ]; then cat < ./dist/"$SPLASHSCREENNAME"/metadata.desktop + sed "s/--accentName/$ACCENTNAME/g; s/--flavour/$FLAVOURNAME/g" ./Resources/splash-screen/metadata.json > ./dist/"$SPLASHSCREENNAME"/metadata.json + cp ./dist/"$GLOBALTHEMENAME"/contents/defaults ./dist/"$SPLASHSCREENNAME"/contents/defaults mkdir ./dist/"$SPLASHSCREENNAME"/contents/previews cp ./Resources/splash-previews/"$FLAVOURNAME".png ./dist/"$SPLASHSCREENNAME"/contents/previews/splash.png cp ./Resources/splash-previews/"$FLAVOURNAME".png ./dist/"$SPLASHSCREENNAME"/contents/previews/preview.png - cp -r ./dist/"$SPLASHSCREENNAME" "${XDG_DATA_HOME:-$HOME/.local/share}"/plasma/look-and-feel/ + cp -r ./dist/"$SPLASHSCREENNAME" "$LOOKANDFEELDIR"/ +} + +InstallAuroraeTheme() { + # Prepare Aurorae Theme Folder + cp -r ./Resources/Aurorae/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" + cp ./Resources/Aurorae/Common/Catppuccin-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc + + echo "Installing Aurorae Theme..." + cp -r ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/ "$AURORAEDIR" } InstallGlobalTheme() { @@ -330,6 +348,7 @@ InstallGlobalTheme() { # Hydrate Metadata with Pallet + Accent Info sed "s/--accentName/$ACCENTNAME/g; s/--flavour/$FLAVOURNAME/g; s/--StoreAuroraeNo/$StoreAuroraeNo/g" ./Resources/LookAndFeel/metadata.desktop > ./dist/Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"/metadata.desktop + sed "s/--accentName/$ACCENTNAME/g; s/--flavour/$FLAVOURNAME/g; s/--StoreAuroraeNo/$StoreAuroraeNo/g" ./Resources/LookAndFeel/metadata.json > ./dist/Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"/metadata.json # Modify 'defaults' to set the correct Aurorae Theme sed "s/--accentName/$ACCENTNAME/g; s/--flavour/$FLAVOURNAME/g; s/--aurorae/$WINDECSTYLECODE/g" ./Resources/LookAndFeel/defaults > ./dist/Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"/contents/defaults @@ -352,7 +371,7 @@ EOF ( cd ./dist tar -cf "$GLOBALTHEMENAME".tar.gz "$GLOBALTHEMENAME" - kpackagetool5 -i "$GLOBALTHEMENAME".tar.gz + kpackagetool6 -i "$GLOBALTHEMENAME".tar.gz ) if [ ! -d "$DESKTOPTHEMEDIR/lightly-plasma-git/" ]; then @@ -397,12 +416,12 @@ GetCursor() { # Fetches cursors echo "Downloading Catppuccin Cursors from Catppuccin/cursors..." sleep 2 - wget -P ./dist https://github.com/catppuccin/cursors/releases/download/v0.2.0/Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"-Cursors.zip - wget -P ./dist https://github.com/catppuccin/cursors/releases/download/v0.2.0/Catppuccin-"$FLAVOURNAME"-Dark-Cursors.zip + wget -q -P ./dist https://github.com/catppuccin/cursors/releases/download/v0.2.0/Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"-Cursors.zip + wget -q -P ./dist https://github.com/catppuccin/cursors/releases/download/v0.2.0/Catppuccin-"$FLAVOURNAME"-Dark-Cursors.zip ( cd ./dist - unzip Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"-Cursors.zip - unzip Catppuccin-"$FLAVOURNAME"-Dark-Cursors.zip + unzip -q Catppuccin-"$FLAVOURNAME"-"$ACCENTNAME"-Cursors.zip + unzip -q Catppuccin-"$FLAVOURNAME"-Dark-Cursors.zip ) } @@ -412,7 +431,7 @@ InstallCursor() { mv ./dist/Catppuccin-"$FLAVOURNAME"-Dark-Cursors "$CURSORDIR" } -# Syntax +# Syntax case "$DEBUGMODE" in "") echo @@ -420,6 +439,10 @@ case "$DEBUGMODE" in read -r CONFIRMATION clear ;; + aurorae) + InstallAuroraeTheme + exit + ;; global) InstallGlobalTheme exit @@ -442,6 +465,9 @@ case "$DEBUGMODE" in esac if [ "$CONFIRMATION" = "Y" ] || [ "$CONFIRMATION" = "y" ]; then + # Build and Install Aurorae Theme + InstallAuroraeTheme + # Build and Install Global Theme InstallGlobalTheme @@ -453,7 +479,7 @@ if [ "$CONFIRMATION" = "Y" ] || [ "$CONFIRMATION" = "y" ]; then # Cleanup echo "Cleaning up.." - rm -rf ./dist + rm -r ./dist # Apply theme echo From 36fed8ffe7a686e34bacb7c8dc02e891d6df8d1f Mon Sep 17 00:00:00 2001 From: dinckelman Date: Tue, 5 Mar 2024 21:19:03 +0100 Subject: [PATCH 2/6] Install the correct decorations for the palette --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 499695a..c977af5 100755 --- a/install.sh +++ b/install.sh @@ -335,7 +335,11 @@ BuildSplashScreen() { InstallAuroraeTheme() { # Prepare Aurorae Theme Folder cp -r ./Resources/Aurorae/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" - cp ./Resources/Aurorae/Common/Catppuccin-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc + if [ "$FLAVOUR" -eq 1 ] || [ "$FLAVOUR" -eq 2 ]; then + cp ./Resources/Aurorae/Common/Catppuccin-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc + else + cp ./Resources/Aurorae/Common/CatppuccinLatte-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc + fi echo "Installing Aurorae Theme..." cp -r ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/ "$AURORAEDIR" From 39e81602e186273cf6ad483e5066aecbb50b30ea Mon Sep 17 00:00:00 2001 From: dinckelman Date: Tue, 5 Mar 2024 21:22:41 +0100 Subject: [PATCH 3/6] Update metadata.json Odd formatting --- Resources/splash-screen/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/splash-screen/metadata.json b/Resources/splash-screen/metadata.json index 5b519ff..4215fff 100644 --- a/Resources/splash-screen/metadata.json +++ b/Resources/splash-screen/metadata.json @@ -1,5 +1,5 @@ { - "KPackageStructure": "Plasma/LookAndFeel", + "KPackageStructure": "Plasma/LookAndFeel", "KPlugin": { "Authors": [ { From 913b4309500a5f8b0df1f26b84762a4978b136ef Mon Sep 17 00:00:00 2001 From: Sourcastic <79325941+Sourcastic@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:25:29 +0500 Subject: [PATCH 4/6] Fix: Workaround to make global theme apply --- Resources/LookAndFeel/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/LookAndFeel/metadata.json b/Resources/LookAndFeel/metadata.json index 55a45f6..bd0a078 100644 --- a/Resources/LookAndFeel/metadata.json +++ b/Resources/LookAndFeel/metadata.json @@ -11,7 +11,7 @@ "Dependencies": [ ], "EnabledByDefault": true, - "Id": "Catppuccin---flavour---accentName-splash", + "Id": "Catppuccin---flavour---accentName", "License": "MIT", "Name": "Catppuccin --flavour --accentName", "Version": "0.2.6" From 8b7fe66b6b641d3a0a89b3c68f5651f0bbfd7951 Mon Sep 17 00:00:00 2001 From: Sourcastic <79325941+Sourcastic@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:25:42 +0500 Subject: [PATCH 5/6] Fix: Workaround to make global theme apply --- install.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index c977af5..686d7ee 100755 --- a/install.sh +++ b/install.sh @@ -240,10 +240,10 @@ case "$WINDECSTYLE" in WINDECSTYLECODE=__aurorae__svg__Catppuccin"$FLAVOURNAME"-Modern case "$FLAVOUR" in - 1) StoreAuroraeNo="2023219" ;; - 2) StoreAuroraeNo="2023220" ;; - 3) StoreAuroraeNo="2023222" ;; - 4) StoreAuroraeNo="2023224" ;; + 1) StoreAuroraeNo="2135229" ;; + 2) StoreAuroraeNo="2135227" ;; + 3) StoreAuroraeNo="2135225" ;; + 4) StoreAuroraeNo="2135223" ;; esac cat < Date: Thu, 7 Mar 2024 17:45:57 +0100 Subject: [PATCH 6/6] Fix incorrect decoration file assignment --- install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 686d7ee..58caecf 100755 --- a/install.sh +++ b/install.sh @@ -335,10 +335,10 @@ BuildSplashScreen() { InstallAuroraeTheme() { # Prepare Aurorae Theme Folder cp -r ./Resources/Aurorae/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME" - if [ "$FLAVOUR" -eq 1 ] || [ "$FLAVOUR" -eq 2 ]; then - cp ./Resources/Aurorae/Common/Catppuccin-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc - else + if [ "$FLAVOUR" -eq 4 ]; then cp ./Resources/Aurorae/Common/CatppuccinLatte-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc + else + cp ./Resources/Aurorae/Common/Catppuccin-"$WINDECSTYLENAME"rc ./dist/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"/Catppuccin"$FLAVOURNAME"-"$WINDECSTYLENAME"rc fi echo "Installing Aurorae Theme..."