Omarchy is exclusively for vanilla Arch without Gnome or KDE installed

This commit is contained in:
David Heinemeier Hansson 2025-08-06 20:57:38 +02:00
parent 43a31a10d0
commit b31d52a6ab
2 changed files with 19 additions and 0 deletions

View File

@ -26,6 +26,7 @@ show_subtext() {
}
# Install prerequisites
source $OMARCHY_INSTALL/preflight/guard.sh
source $OMARCHY_INSTALL/preflight/aur.sh
source $OMARCHY_INSTALL/preflight/presentation.sh
source $OMARCHY_INSTALL/preflight/migrations.sh

View File

@ -0,0 +1,18 @@
#!/bin/bash
abort() {
echo -e "\e[31mOmarchy is only designed for a fresh Arch install!\e[0m"
exit 1
}
# Must be an Arch distro
[[ -f /etc/arch-release ]] || abort
# Must not be an Arch derivative distro
for marker in /etc/cachyos-release /etc/eos-release /etc/garuda-release /etc/manjaro-release; do
[[ -f "$marker" ]] && abort
done
# Must not have Gnome or KDE already install
pacman -Qe gnome-shell &>/dev/null && abort
pacman -Qe plasma-desktop &>/dev/null && abort