mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2026-06-18 19:35:47 +00:00
This script undoes the install process that is performed by the install scripts. It doesn't revert settings back to their defaults, consult the install guide for details. The install guide also has a written manual guide on uninstalling AeroThemePlasma, for additional clarity. This script also acts as a migration script for the future restructuring of the project, which will make everything installable by only using CMake, which is what should have been implemented a long time ago. This will be one of the last few commits before the project is restructured, introducing AUR packages as an option for installing ATP.
61 lines
1.8 KiB
Bash
Executable file
61 lines
1.8 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 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 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
|
|
|
|
|