#!/bin/bash
set -euo pipefail

echo "=== KDE Plasma Installer ==="

echo "[+] Installing KDE Plasma..."
sudo pacman -S --noconfirm --needed \
    plasma-meta \
    sddm sddm-kcm \
    xdg-desktop-portal-kde \
    konsole dolphin kate gwenview ark spectacle okular elisa \
    plasma-browser-integration \
    pipewire wireplumber pipewire-alsa pipewire-jack pipewire-pulse \
    networkmanager \
    bluez bluez-utils bluedevil \
    power-profiles-daemon \
    flatpak

echo "[+] Enabling services..."
sudo systemctl enable sddm.service
sudo systemctl enable NetworkManager.service
sudo systemctl enable bluetooth.service

echo "=== KDE Plasma installation complete. Reboot to start. ==="
