fedora niri add noctalia shell

This commit is contained in:
2026-05-23 20:56:33 +02:00
parent 95819026d5
commit 9a8a0206a7
+20 -5
View File
@@ -84,17 +84,32 @@ say_yellow "Starting Niri setup..."
CURRENT_DE="$(detect_de)"
CURRENT_DM="$(detect_display_manager)"
# Core components for Niri (Fedora package names)
# Note: Ensure noctalia-shell and xwayland-satellite are available in your enabled Copr/repos
NIRI_PACKAGES=(niri fuzzel swaybg swaylock)
# Add Terra repo
add_terra_repo() {
if [ ! -f /etc/yum.repos.d/terra.repo ]; then
say_yellow "Adding Terra repository for Noctalia Shell..."
# Fetches the repository safely utilizing your current Fedora release version
sudo dnf install -y --nogpgcheck --repofrompath "terra,https://repos.fyralabs.com/terra$releasever" terra-release
else
say_gray "Terra repository already configured."
fi
}
# Core components for Niri & Noctalia setup
NIRI_PACKAGES=(niri fuzzel swaybg swaylock noctalia-shell)
if [[ -z "$CURRENT_DE" || "$CURRENT_DE" == "none" ]]; then
say_cyan "No Desktop Environment detected. Installing Niri (light setup with SDDM)..."
say_cyan "No Desktop Environment detected. Installing Niri + Noctalia Shell..."
# 1. Add the repo first
add_terra_repo
# 2. Install everything
install_packages sddm "${NIRI_PACKAGES[@]}"
switch_display_manager "sddm"
say_green "Niri with SDDM installed successfully. You can reboot now to start Niri."
say_green "Niri, Noctalia, and SDDM installed successfully."
else
say_cyan "Detected existing Desktop Environment: $CURRENT_DE"