#!/bin/bash set -uo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck source=../../lib/common.sh source "$HERE/../../lib/common.sh" # shellcheck source=../../lib/session.sh source "$HERE/../../lib/session.sh" if is_debug; then set +e; else set -e; fi step "Desktop environment: KDE Plasma" rule if pkg_installed plasma-workspace; then ok "Plasma already installed." else info "Installing the KDE Plasma desktop..." install_group_any kde-desktop kde-desktop-environment fi # Plasma's native greeter is SDDM; make sure it is actually the active one. install_packages sddm switch_display_manager sddm ok "Plasma setup complete."