#!/bin/bash

# omarchy:summary=Remove preinstalled Omarchy applications (web apps, TUIs, and selected packages).

if gum confirm --affirmative "$(omarchy-i18n common.yes)" --negative "$(omarchy-i18n common.no)" "$(omarchy-i18n preinstalls.confirmRemove)"; then
  echo -e "Removing preinstalled Armbian applications...\n"

  omarchy-webapp-remove-all
  omarchy-tui-remove-all

  mkdir -p ~/.local/state/omarchy
  touch ~/.local/state/omarchy/preinstalls-removed
  omarchy-restart-hyprctl

  omarchy-pkg-drop \
    aether \
    cliamp \
    libreoffice-fresh \
    pinta \
    obsidian \
    omacut \
    monologue \
    omacalc \
    omawrite \
    hype \
    signed \
    fantasi \
    flowtunes
fi
