Omarchy is exclusively for vanilla Arch without Gnome or KDE installed (#524)

This commit is contained in:
David Heinemeier Hansson 2025-08-11 17:00:19 +02:00 committed by GitHub
parent e0edb8c660
commit 06103d4258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View File

@ -27,6 +27,7 @@ show_subtext() {
} }
# Install prerequisites # Install prerequisites
source $OMARCHY_INSTALL/preflight/guard.sh
source $OMARCHY_INSTALL/preflight/aur.sh source $OMARCHY_INSTALL/preflight/aur.sh
source $OMARCHY_INSTALL/preflight/presentation.sh source $OMARCHY_INSTALL/preflight/presentation.sh
source $OMARCHY_INSTALL/preflight/migrations.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