#!/bin/bash

# omarchy:summary=Remove Tailscale and its bar plugin.
# omarchy:requires-sudo=true

tailscale down 2>/dev/null || true
sudo systemctl disable --now tailscaled.service 2>/dev/null || true
omarchy-config-shell-bar drop omarchy.tailscale
omarchy-webapp-remove "Tailscale" 2>/dev/null || true
omarchy-pkg-drop tailscale

echo ""
echo "Tailscale has been removed."
