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:
- 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
- Verify changes:
grep -r "paru" /home/$USER/.local/share/omarchy/bin/ # Confirm replacements
- Ensure executability:
sudo chmod +x /home/$USER/.local/share/omarchy/bin/*
- 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!
What correction or addition do we need?
Problem:
Omarchy’s scripts hardcode the
yayAUR helper, causing AUR packages to disappear from menus (e.g.,omarchy-menu,omarchy-pkg-install) when users switch toparuor another helper. This breaks the user experience.Root Cause:
Only scripts in
/home/$USER/.local/share/omarchy/bin/useyaydirectly. Other matches are false positives (binaries/comments).Solution:
Replace all occurrences of
yaywithparu(or any other AUR helper) in the following scripts:omarchy-menuomarchy-pkg-aur-installomarchy-pkg-installomarchy-pkg-removeSteps to Fix:
yaywithparu(or the name of your helper) in each script:Or super+alt+space and Install → AUR or Remove → Package
Notes:
parusupports allyayflags (e.g.,--noconfirm).Proposed PR:
I can submit a PR with:
omarchy-switch-helper).docs/aur-helper.md.Question for Maintainers:
$AUR_HELPER) for future flexibility?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!