Agent skill
hyprland-debug
Debug Hyprland/Wayland issues. Use when theme switching fails, windows disappear, services crash, or displays malfunction.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/hyprland-debug
SKILL.md
<diagnosis_order>
- Check Hyprland logs for errors (DRM conflicts, modesetting)
- Check for process accumulation (multiple swaybg, waybar instances)
- Check service logs for Wayland connection errors
- Verify HYPRLAND_INSTANCE_SIGNATURE is current
- Check monitor-related daemons for state-change loops </diagnosis_order>
<log_locations> Hyprland logs: /run/user/$(id -u)/hypr/*/hyprland.log Hyprland socket: $XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/ User service logs: journalctl --user -u SERVICE </log_locations>
<common_causes> Windows disappearing: Multiple background daemons (swaybg) causing DRM page-flip conflicts. Repeated modesetting: Monitor daemon applying config without checking current state. Service crashes: Wayland connection lost during restart - often from upstream DRM issues. Broken socket errors: Stale HYPRLAND_INSTANCE_SIGNATURE from crash/logout. </common_causes>
<anti_patterns> Restarting services with file watchers: Check logs for "reload listener" - if present, service auto-reloads. Gentle kills for background daemons: Use SIGKILL + delay for clean replacement. Monitor config without state check: Always check current state before hyprctl keyword commands. SIGUSR2 for waybar theme changes: Doesn't re-fetch @imported CSS files - need full restart. Modifying nix-managed configs: Symlinks to /nix/store are immutable - can't trigger inotify. PartOf= for Wayland services: Causes services to stop during home-manager reload. </anti_patterns>
<service_reload_methods> Check bin/omarchy/ scripts for current implementations. General patterns:
- hyprctl keyword: Safe for Hyprland config changes without reload
- swaync-client -rs: CSS reload without service restart
- File watchers: Many services auto-reload on file change
- Full restart: Only when other methods don't work </service_reload_methods>
<stale_session_fix> Shell startup script in shell/fish/conf.d/ handles stale HYPRLAND_INSTANCE_SIGNATURE. Tests actual hyprctl connectivity and updates to working instance. tmux update-environment includes Wayland vars. </stale_session_fix>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?