fix: 3 Arch-related script fixes (Waydroid, MyBash pkg mgr, GRUB auto-refresh)#1294
fix: 3 Arch-related script fixes (Waydroid, MyBash pkg mgr, GRUB auto-refresh)#1294thepinak503 wants to merge 7 commits into
Conversation
- ChrisTitusTech#1067: Simplify waydroid kernel grep to avoid ERE syntax issues - ChrisTitusTech#1255: Use package manager for starship/fzf/zoxide before curl fallback - ChrisTitusTech#1220: Auto-run grub-mkconfig after GRUB theme installation Closes ChrisTitusTech#1067, ChrisTitusTech#1255, ChrisTitusTech#1220
technicks89
left a comment
There was a problem hiding this comment.
A few of the tools here would make sense to have available for all Distros. Updating to support other distros (apt-get/nala, dnf, zypper, etc). move to system-setup root instead of arch folder
There was a problem hiding this comment.
pipewire is available on most distros and this should also be updated and moved into system-setup root folder
|
Addressed review feedback from @technicks89:
Kept |
| pacman) "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$1" ;; | ||
| apk) "$ESCALATION_TOOL" "$PACKAGER" add "$1" ;; | ||
| xbps-install) "$ESCALATION_TOOL" "$PACKAGER" -Sy "$1" ;; | ||
| *) "$ESCALATION_TOOL" "$PACKAGER" install -y "$1" ;; |
There was a problem hiding this comment.
Recommend change *) to dnf|apt-get|nala|zypper, and using * for flatpak(if available) or note of unsupported package manager
| *) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y pipewire wireplumber |
There was a problem hiding this comment.
Recommend change *) to flatpak(if available) or note of unsupported package manager
| *) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y zram-generator |
There was a problem hiding this comment.
Recommend change *) to flatpak(if available) or note of unsupported package manager
|
Addressed review feedback from @technicks89's second review:
|
| "$ESCALATION_TOOL" "$PACKAGER" install -y pipewire pipewire-pulse wireplumber | ||
| ;; | ||
| dnf) | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y pipewire pipewire-pulse wireplumber pipewire-jack-audio-connection-kit |
There was a problem hiding this comment.
pipewire-pulse should be pipewire-pulseaudio
| "$ESCALATION_TOOL" "$PACKAGER" install -y pipewire pipewire-pulse wireplumber pipewire-audio-client-libraries 2>/dev/null || \ | ||
| "$ESCALATION_TOOL" "$PACKAGER" install -y pipewire pipewire-pulse wireplumber |
There was a problem hiding this comment.
Debian (at least 13) has pipewire-jack as well
…ire-pulseaudio for Fedora
|
Updated pipewire-setup.sh based on feedback:
|
Summary
Three independent fixes for Arch Linux user scripts.
#1067 — Waydroid grep syntax
Simplified the kernel detection grep in
waydroid-setup.sh. Old ERE pattern used(|...)alternation with empty match — fragile and confusing. Replaced with simple piped greps:grep '^linux' | grep -v '-headers' | grep -v '-firmware'.#1255 — MyBash: install starship/fzf/zoxide via package manager
mybash-setup.shnow tries the system package manager first for starship, fzf, and zoxide. Falls back to curl/git only if the package manager fails. Added a shared_install_pkghelper matching the pattern used byinstallDepend.#1220 — GRUB theme auto-refresh
grub-theme.shnow runsgrub-mkconfig -o /boot/grub/grub.cfg(orgrub2-mkconfigfor Fedora/RHEL) after installing the theme, so users don't have to manually refresh.Security
"$ESCALATION_TOOL"patternCloses #1067
Closes #1255
Closes #1220