omarchy-grok-usage/uninstall.sh
Ebeneezer 4df21f20a0 feat: SuperGrok weekly collector for stock Omarchy agents panel
Writes grok.json for omarchy.agents. Yields when official
omarchy-agent-usage-grok exists. No bar plugin, no packaged-bin name.
2026-08-20 15:31:55 -07:00

16 lines
752 B
Bash
Executable file

#!/usr/bin/env bash
# Remove the household Grok usage collector for the current user.
# Leaves grok.json in place so a later official collector can overwrite it.
set -euo pipefail
bin_dir="${XDG_BIN_HOME:-$HOME/.local/bin}"
unit_dir="${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user"
systemctl --user disable --now omarchy-grok-usage.timer 2>/dev/null || true
systemctl --user disable --now omarchy-grok-usage.service 2>/dev/null || true
rm -f "$unit_dir/omarchy-grok-usage.timer" "$unit_dir/omarchy-grok-usage.service"
rm -f "$bin_dir/omarchy-grok-usage"
systemctl --user daemon-reload 2>/dev/null || true
echo "Removed omarchy-grok-usage timer and ~/.local/bin/omarchy-grok-usage"
echo "Did not delete ~/.local/state/omarchy/agents/usage/grok.json"