Skip to content

Fix: Replace hardcoded 'yay' with 'paru' (or other) in Omarchy scripts to avoid AUR menu breakage #3050

Description

@zestfulmouse

What correction or addition do we need?

Problem:

Omarchy’s scripts hardcode the yay AUR helper, causing AUR packages to disappear from menus (e.g., omarchy-menu, omarchy-pkg-install) when users switch to paru or another helper. This breaks the user experience.

Root Cause:
Only scripts in /home/$USER/.local/share/omarchy/bin/ use yay directly. Other matches are false positives (binaries/comments).

Solution:
Replace all occurrences of yay with paru (or any other AUR helper) in the following scripts:

  • omarchy-menu
  • omarchy-pkg-aur-install
  • omarchy-pkg-install
  • omarchy-pkg-remove

Steps to Fix:

  1. Replace yay with paru (or the name of your helper) in each script:
    sudo sed -i 's/yay/paru/g' /home/$USER/.local/share/omarchy/bin/omarchy-menu 
    sudo sed -i 's/yay/paru/g' /home/$USER/.local/share/omarchy/bin/omarchy-pkg-aur-install
    sudo sed -i 's/yay/paru/g' /home/$USER/.local/share/omarchy/bin/omarchy-pkg-install
    sudo sed -i 's/yay/paru/g' /home/$USER/.local/share/omarchy/bin/omarchy-pkg-remove
    sudo sed -i 's/yay/paru/g' /home/$USER/.local/share/omarchy/bin/omarchy-update-system-pkgs
  2. Verify changes:
    grep -r "paru" /home/$USER/.local/share/omarchy/bin/  # Confirm replacements
  3. Ensure executability:
    sudo chmod +x /home/$USER/.local/share/omarchy/bin/*
  4. Test:
    /home/$USER/.local/share/omarchy/bin/omarchy-menu  # Should now work with paru

Or super+alt+space and Install → AUR or Remove → Package

Notes:

  • Tested on Omarchy vX.X: AUR packages reappear in menus after this change.
  • paru supports all yay flags (e.g., --noconfirm).
  • No false positives in other system files.

Proposed PR:
I can submit a PR with:

  • A script to automate the replacement (e.g., omarchy-switch-helper).
  • Direct patches to the 4 scripts above.
  • Updated documentation in docs/aur-helper.md.

Question for Maintainers:

  • Should the helper name be a variable (e.g., $AUR_HELPER) for future flexibility?
  • Preferred location for a helper-switching script (if needed)?

I’m still learning Git/GitHub and bash, so if my issue or future PR needs adjustments, just let me know—I’m happy to improve!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions