Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

6 Commits

Folders and files

Repository files navigation

πŸ”οΈ hyprfedora

An intelligent, safety-first Antigravity CLI Agent Skill that installs, configures, repairs, and manages Hyprland on Fedora Linux β€” without breaking your existing desktop setup.


🎯 Why This Project Exists

Setting up Hyprland on Fedora can be tedious. You have to configure Wayland portals, sort out PipeWire audio, select launcher/terminal defaults, and configure GPU flagsβ€”especially if you're running NVIDIA or hybrid graphics.

This skill allows you to open Google Antigravity CLI (agy) and simply say:

"Install Hyprland on my Fedora system."

The agent inspects your system hardware, creates timestamped backups of any existing settings, installs missing Fedora packages via dnf, configures your graphics drivers, and sets up a clean desktop session ready for your login screen.


✨ Key Features

  • πŸ›‘οΈ Safety First & Mandatory Backups: Never overwrites your existing ~/.config/hypr/ without creating a timestamped backup in ~/.local/state/fedora-hyprland-installer/backups/.
  • 🐧 Fedora-Native: Built specifically for Fedora. Uses dnf, systemctl, and standard Fedora package repositories.
  • ⚑ GPU Aware: Automatically detects NVIDIA, AMD Radeon, Intel, and Hybrid laptop setups, setting the right environment flags (like WLR_NO_HARDWARE_CURSORS for NVIDIA).
  • 🀝 Desktop Coexistence: Never removes GNOME, KDE, or Xfce. Hyprland is added as a session option at your GDM/SDDM login screen.
  • πŸ› οΈ Automated Repair: Diagnoses screen sharing, broken portals, or PipeWire audio issues without reinstalling everything.
  • 🧼 Clean Removal: Completely uninstallable while preserving your base desktop and backups.

πŸ“¦ What Gets Installed

When installing, the skill provisions a minimal, fast, and modern desktop stack:

Component Package / Tool Purpose
Compositor hyprland Dynamic tiling Wayland compositor
Terminal kitty Fast, GPU-accelerated terminal
Launcher wofi Application launcher menu
Status Bar waybar Desktop panel & bar
Portals xdg-desktop-portal-hyprland, xdg-desktop-portal-gtk Screen sharing & file dialogs
Audio pipewire, wireplumber Low-latency audio & stream routing
Notifications dunst Desktop notification daemon
Screenshots grim, slurp, wl-clipboard Screen capture & clipboard support

πŸš€ Quick Start & Usage

1. Installation

Place this skill directory inside your project's .agents/skills/ directory:

mkdir -p .agents/skills/
# If copying from another location:
# cp -r /path/to/fedora-hyprland-installer .agents/skills/

Or install it globally for all your terminal projects:

mkdir -p ~/.gemini/antigravity-cli/skills/
cp -r .agents/skills/fedora-hyprland-installer ~/.gemini/antigravity-cli/skills/

2. Using with agy (Antigravity CLI)

Simply talk to agy in natural language:

agy
  • Fresh Install: "Install Hyprland on my Fedora machine."
  • Health Check: "Verify my Hyprland installation."
  • Troubleshoot & Fix: "Fix my screen sharing on Hyprland" or "Hyprland won't start."
  • Update Setup: "Update my Hyprland packages."
  • Uninstall: "Uninstall Hyprland."

πŸ› οΈ Direct Terminal Utilities

If you prefer running standalone bash scripts without agy, you can use the built-in utilities in scripts/:

# Detect hardware, OS, and session information
./scripts/detect-system.sh

# Detect GPU hardware (NVIDIA / AMD / Intel)
./scripts/detect-gpu.sh

# Run preflight system verification
./scripts/preflight.sh

# Verify health of your current Hyprland installation
./scripts/verify.sh

# Run automated non-destructive test suite
./tests/test-scripts.sh

πŸ“ Repository Structure

fedora-hyprland-installer/
β”œβ”€β”€ SKILL.md                 # Antigravity Agent Skill definition & workflow rules
β”œβ”€β”€ README.md                # Project documentation
β”œβ”€β”€ LICENSE                  # MIT License
β”œβ”€β”€ scripts/                 # Modular, safe shell scripts
β”‚   β”œβ”€β”€ detect-system.sh
β”‚   β”œβ”€β”€ detect-gpu.sh
β”‚   β”œβ”€β”€ preflight.sh
β”‚   β”œβ”€β”€ install.sh
β”‚   β”œβ”€β”€ configure.sh
β”‚   β”œβ”€β”€ verify.sh
β”‚   β”œβ”€β”€ backup.sh
β”‚   β”œβ”€β”€ repair.sh
β”‚   └── uninstall.sh
β”œβ”€β”€ references/              # Detailed knowledge base for Fedora, GPUs & Wayland
β”‚   β”œβ”€β”€ fedora.md
β”‚   β”œβ”€β”€ hyprland.md
β”‚   β”œβ”€β”€ nvidia.md
β”‚   β”œβ”€β”€ amd.md
β”‚   β”œβ”€β”€ intel.md
β”‚   β”œβ”€β”€ wayland.md
β”‚   β”œβ”€β”€ portals.md
β”‚   └── troubleshooting.md
└── tests/                   # Safe, non-destructive test suite
    β”œβ”€β”€ test-detection.sh
    └── test-scripts.sh

🀝 Contributing

Contributions, bug reports, and improvements are welcome! Feel free to open an issue or submit a pull request on GitHub.


πŸ“œ License

Distributed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages