fedora niri add noctalia shell
This commit is contained in:
+20
-5
@@ -84,17 +84,32 @@ say_yellow "Starting Niri setup..."
|
|||||||
CURRENT_DE="$(detect_de)"
|
CURRENT_DE="$(detect_de)"
|
||||||
CURRENT_DM="$(detect_display_manager)"
|
CURRENT_DM="$(detect_display_manager)"
|
||||||
|
|
||||||
# Core components for Niri (Fedora package names)
|
# Add Terra repo
|
||||||
# Note: Ensure noctalia-shell and xwayland-satellite are available in your enabled Copr/repos
|
add_terra_repo() {
|
||||||
NIRI_PACKAGES=(niri fuzzel swaybg swaylock)
|
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
|
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[@]}"
|
install_packages sddm "${NIRI_PACKAGES[@]}"
|
||||||
switch_display_manager "sddm"
|
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
|
else
|
||||||
say_cyan "Detected existing Desktop Environment: $CURRENT_DE"
|
say_cyan "Detected existing Desktop Environment: $CURRENT_DE"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user