#!/bin/bash
set -euo pipefail

echo "=== XFCE Installer ==="

echo "[+] Installing XFCE..."
sudo pacman -S --noconfirm --needed \
    xfce4 xfce4-goodies \
    lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings \
    xdg-desktop-portal-gtk \
    pipewire wireplumber pipewire-alsa pipewire-jack pipewire-pulse \
    xfce4-pulseaudio-plugin \
    networkmanager network-manager-applet \
    bluez bluez-utils blueman \
    gvfs gvfs-smb gvfs-mtp \
    flatpak

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

echo "=== XFCE installation complete. Reboot to start. ==="
