跳到正文
Skillpedia
部署与云(DevOps)48k · #4606

fedora-hyprland-installer

它能做什么

这个程序可以帮你在 Fedora Linux 上安装、配置、检查、修复、更新和卸载 Hyprland,它是一款桌面环境。它会自动检测你电脑使用的显卡(NVIDIA、AMD 或 Intel),以确保最佳配置。

适用场景

  • ✓在 Fedora 上安装或更新 Hyprland 时。
  • ✓检查 Hyprland 及其组件是否正常工作时。
  • ✓修复常见问题或卸载 Hyprland 时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fedora-hyprland-installer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/fedora-hyprland-installer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在我的 Fedora 上安装 Hyprland,并针对我的 NVIDIA 显卡进行配置。”

每周 5 个新技能,1 分钟读完。

工作原理

它会使用 Fedora 专用命令安装所需软件包,备份你原有的配置,并根据你的硬件设置 Hyprland。在进行重大更改之前,它总会先征得你的同意。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Fedora Hyprland Installer Skill

This skill provides an automated, safety-first workflow for managing Hyprland on Fedora Linux.

Resolve the Skill Directory

Before running a bundled script, resolve SKILL_DIR to the directory that contains this SKILL.md. Do not assume the user's current working directory or guess a global installation path. If the agent cannot resolve the installed skill directory from its runtime context, stop and ask the user to provide it. Invoke bundled shell files explicitly with bash and a quoted path, for example bash "$SKILL_DIR/scripts/detect-system.sh".

When to Use

  • Use when installing or updating a Fedora-packaged Hyprland desktop stack.
  • Use when verifying a Hyprland session, portals, PipeWire, or WirePlumber on Fedora.
  • Use when diagnosing the limited repair cases documented below or removing the Hyprland-specific packages installed by this workflow.

Core Directives & Safety Rules

  1. Fedora-First: Always use Fedora tools (dnf, systemctl, loginctl). Never use apt, pacman, or yay.
  2. Never Blindly Execute: Inspect the system prior to any installation or modification.
  3. Preserve Existing Desktop: Do not uninstall GNOME, KDE, or any existing desktop environment. Hyprland should be added as a session choice in the display manager (GDM/SDDM/LightDM).
  4. Mandatory Backup: Always create a timestamped backup in ~/.local/state/fedora-hyprland-installer/backups/ before writing or altering configurations in ~/.config/hypr/, ~/.config/waybar/, etc.
  5. GPU Awareness: Check whether the system uses NVIDIA, AMD, Intel, or Hybrid graphics before configuring environment variables or graphics drivers. Never use arbitrary .run installers for NVIDIA; rely on Fedora/RPM Fusion repositories.
  6. Privileged Operations: Sudo commands must be clearly identified and communicated to the user. Do not hardcode passwords.
  7. Idempotency: Running actions multiple times must be safe and avoid duplicate config lines.
  8. Explicit Consent: Show the exact package or service changes first. Run scripts that mutate packages or services only after the user confirms; use repair.sh without --apply for diagnosis.

Workflow Guide

1. Installation Workflow

When the user asks to "Install Hyprland" or "Setup Hyprland on Fedora":

  1. Execute bash "$SKILL_DIR/scripts/detect-system.sh" and bash "$SKILL_DIR/scripts/detect-gpu.sh".
  2. Execute bash "$SKILL_DIR/scripts/preflight.sh" to verify Fedora release, network, package manager, and sudo access.
  3. Execute bash "$SKILL_DIR/scripts/backup.sh" to preserve any pre-existing configurations.
  4. Show the package plan with bash "$SKILL_DIR/scripts/install.sh" --dry-run; after explicit approval, execute bash "$SKILL_DIR/scripts/install.sh" to install Hyprland, Wayland portal packages (xdg-desktop-portal-hyprland, xdg-desktop-portal-gtk), PipeWire/WirePlumber, terminal, launcher, status bar, and authentication agent.
  5. Execute bash "$SKILL_DIR/scripts/configure.sh" to write a clean, functional initial Hyprland config (~/.config/hypr/hyprland.conf) tailored to detected terminal/launcher and GPU environment variables.
  6. Execute bash "$SKILL_DIR/scripts/verify.sh" to ensure binaries, portal services, PipeWire, and login desktop entries (/usr/share/wayland-sessions/hyprland.desktop) exist and validate.
  7. Present a summary report detailing installed packages, backup paths, and login instructions.

2. Repair Workflow

When the user asks to "Fix Hyprland", "Hyprland won't start", "No audio", "Screen sharing broken":

  1. Run bash "$SKILL_DIR/scripts/detect-system.sh" and inspect system logs (journalctl -xe, journalctl --user -u xdg-desktop-portal).
  2. Execute bash "$SKILL_DIR/scripts/repair.sh" to report a missing Hyprland config, missing portal package, and inactive PipeWire/WirePlumber services.
  3. Review the proposed changes with the user, then execute bash "$SKILL_DIR/scripts/repair.sh" --apply only after approval. The script can create a missing config, install missing portal packages, and enable or restart the checked user services; investigate other faults manually.
  4. Execute bash "$SKILL_DIR/scripts/verify.sh".

3. Update Workflow

When the user asks to "Update Hyprland":

  1. Run bash "$SKILL_DIR/scripts/backup.sh".
  2. Show the package plan with bash "$SKILL_DIR/scripts/install.sh" --dry-run --update and obtain approval.

…

常见问题

什么是 Hyprland?

Hyprland 是一款适用于 Linux 的现代化、可定制的桌面环境,注重速度快和视觉效果好。

我需要有编程基础吗?

不需要,这个程序专为所有人设计,即使没有编程经验也能使用,它会自动完成复杂的操作。

它会删除我当前的系统吗?

不会,它只是把 Hyprland 作为一个可选项添加进来,不会移除你现有的 GNOME 或 KDE 等桌面环境。

详情

作者的原始描述

Install, configure, verify, repair, update, and uninstall Hyprland on Fedora Linux with GPU-aware detection (NVIDIA/AMD/Intel).

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4606
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能