Fork the desktop off Omarchy as a self-contained system

This commit is contained in:
SirBlob committed 2026-09-19 23:50:39 -04:00
1 parent 16a56f49a1
commit 9501f2bb4d
559 files changed
+43273

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# blob:summary=Install Arch packages if they are missing
# blob:args=<packages...>
# blob:examples=blob pkg add jq ripgrep
# blob:requires-sudo=true
if blob-pkg-missing "$@"; then
if (( EUID == 0 )); then
pacman -S --noconfirm --needed "$@" || exit 1
else
sudo pacman -S --noconfirm --needed "$@" || exit 1
fi
fi
for pkg in "$@"; do
# Secondary check to handle states where pacman doesn't actually register an error
if ! pacman -Q "$pkg" &>/dev/null; then
echo -e "\033[31mError: Package '$pkg' did not install\033[0m" >&2
exit 1
fi
done
exit 0