aerothemeplasma/deprecated/install_plasma_components.sh
wackyideas 8d6fbd7bdb overhaul: prepare repo for Plasma 6.6 release
This commit overhauls the repository structure such that it separates
the project into multiple repositories, one for each subproject. This
repository will be moved to the AeroShell group, and most importantly,
the installation method changes from locally installed modifications, to
CMake-based installation, in preparation for AUR packages, and possibly
packages for other distros.

Migration details are in INSTALL.md, which are highly recommended, if
not required to uninstall any old instance of AeroThemePlasma.
2026-02-21 21:15:07 +01:00

68 lines
2 KiB
Bash
Executable file

#!/bin/bash
CUR_DIR=$(pwd)
# Sanity check to see if the proper tools are installed.
if [[ -z "$(command -v kpackagetool6)" ]]; then
echo "kpackagetool6 not found. Stopping."
exit
fi
if [[ -z "$(command -v cmake)" ]]; then
echo "CMake not found. Stopping."
exit
fi
if [[ -z "$(command -v tar)" ]]; then
echo "tar not found. Stopping."
exit
fi
if [[ -z "$(command -v sddmthemeinstaller)" ]]; then
echo "sddmthemeinstaller not found. Stopping."
exit
fi
# Function that installs/upgrades KDE packages.
# install_component $filename "Plasma/Shell"
function install_component {
COMPONENT=$(basename "$1")
INSTALLED=$(kpackagetool6 -l -t "$2" | grep $COMPONENT)
if [[ -z "$INSTALLED" ]]; then
echo "$COMPONENT isn't installed, installing normally..."
kpackagetool6 -t "$2" -i "$1"
else
echo "$COMPONENT found, upgrading..."
kpackagetool6 -t "$2" -u "$1"
fi
echo -e "\n"
cd "$CUR_DIR"
}
# Installs the Global Theme (Look and feel).
install_component "$PWD/plasma/look-and-feel/authui7" "Plasma/LookAndFeel"
# Layout template
install_component "$PWD/plasma/layout-templates/io.gitgud.wackyideas.taskbar" "Plasma/LayoutTemplate"
# Plasma Style
install_component "$PWD/plasma/desktoptheme/Seven-Black" "Plasma/Theme"
# Shell
install_component "$PWD/plasma/shells/io.gitgud.wackyideas.desktop" "Plasma/Shell"
# Installs the color scheme.
echo -e "Installing color scheme..."
COLOR_DIR="$HOME/.local/share/color-schemes"
mkdir -p "$COLOR_DIR"
cp "$PWD/plasma/color_scheme/Aero.colors" "$COLOR_DIR"
#plasma-apply-colorscheme Aero
# Installs the SDDM theme, as well as the SDDM entries required for ATP.
echo -e "Installing login manager entries..."
cd "plasma/sddm/login-sessions"
sh install.sh
echo -e "Installing SDDM theme..."
cd "$CUR_DIR/plasma/sddm"
tar -zcvf "sddm-theme-mod.tar.gz" "sddm-theme-mod"
sddmthemeinstaller -i "sddm-theme-mod.tar.gz"
rm "sddm-theme-mod.tar.gz"
#setsid plasmashell --replace & # Restart plasmashell and detach it from the script