Files
fedora/modules/twm/hyprland.sh
T
Pathfinder 0939b228b6 Terra in base section; fix Hyprland via solopasha COPR
- Terra repo is added right after RPM Fusion in the base setup (it carries
  noctalia + mangowc). Modules keep calling add_terra_repo so they still
  work standalone; it is a no-op when terra-release is present.
- Hyprland was retired from the Fedora repos after F42 (dependency churn);
  the module could never resolve 'hyprland' on F44. It now enables the
  solopasha/hyprland COPR first — the de facto standard for F43/44 — and
  treats the accessory packages (hyprpaper/hyprlock/waybar/mako/wofi/
  xwayland-satellite) as optional so a name drift warns instead of aborting.
- README updated.
2026-10-27 11:14:21 +01:00

34 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
set -uo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=../../lib/common.sh
source "$HERE/../../lib/common.sh"
# shellcheck source=../../lib/session.sh
source "$HERE/../../lib/session.sh"
if is_debug; then set +e; else set -e; fi
step "Tiling window manager: Hyprland"
rule
# hyprland was retired from the Fedora repos after F42 (dependency churn),
# so the compositor comes from the solopasha COPR — the de facto standard.
if ! pkg_installed hyprland; then
info "Enabling copr: solopasha/hyprland..."
sudo dnf copr enable -y solopasha/hyprland
fi
info "Installing Hyprland and its ecosystem..."
install_packages hyprland xdg-desktop-portal-hyprland alacritty
install_optional hyprpaper hypridle hyprlock waybar mako wofi xwayland-satellite
install_session_prereqs
install_nerd_font JetBrainsMono
# The Fedora hyprland package ships hyprland.desktop in wayland-sessions.
install_packages sddm
switch_display_manager sddm
ok "Hyprland setup complete. Log out and pick Hyprland in SDDM."