#!/bin/bash
set -euo pipefail

echo "=== LXQt Installer ==="

echo "[+] Installing LXQt..."
sudo pacman -S --noconfirm --needed \
    lxqt \
    openbox obconf-qt \
    sddm \
    breeze-icons \
    xdg-desktop-portal-gtk \
    xorg-server xorg-xinit \
    pipewire wireplumber pipewire-alsa pipewire-jack pipewire-pulse \
    networkmanager network-manager-applet \
    bluez bluez-utils blueman \
    gvfs gvfs-smb gvfs-mtp \
    flatpak

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

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