#!/bin/bash

# omarchy:summary=Reset all Omarchy user configs to the defaults
# omarchy:requires-sudo=true

set -e

if (( EUID == 0 )); then
  echo "Error: This script should not be run as root"
  exit 1
fi

echo "Resetting all Omarchy configs"
omarchy-setup-user --force
omarchy-refresh-limine
omarchy-refresh-plymouth

if omarchy-cmd-present omarchy-nvim-refresh; then
  omarchy-nvim-refresh
elif omarchy-cmd-present omarchy-nvim-setup; then
  omarchy-nvim-setup --force
fi
