hydra

Terminal replacement for Loopback — virtual audio devices and routing on macOS, from a ratatui TUI.
Log | Files | Refs | README | LICENSE

uninstall.sh (1128B)


      1 #!/usr/bin/env bash
      2 # uninstall.sh — remove everything install.sh set up. Reverses in safe order.
      3 set -euo pipefail
      4 
      5 LABEL="com.ganten.hydrad"
      6 HAL="/Library/Audio/Plug-Ins/HAL/Hydra.driver"
      7 
      8 say() { printf '\n\033[1;36m▸ %s\033[0m\n' "$1"; }
      9 
     10 say "Stopping + unloading the daemon LaunchAgent"
     11 launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null || true
     12 rm -f "$HOME/Library/LaunchAgents/$LABEL.plist"
     13 
     14 say "Removing the 'hydra' command"
     15 sudo rm -f /usr/local/bin/hydra 2>/dev/null || rm -f /usr/local/bin/hydra 2>/dev/null || true
     16 
     17 if [ -d "$HAL" ]; then
     18     say "Removing the driver (sudo; restarts coreaudiod, ~1s audio glitch)"
     19     sudo rm -rf "$HAL"
     20     # SIP blocks kickstart of coreaudiod; killing it is allowed (launchd respawns it).
     21     sudo killall coreaudiod 2>/dev/null || true
     22 fi
     23 
     24 say "Removing the control socket"
     25 rm -f "$HOME/Library/Application Support/hydra/hydrad.sock"
     26 
     27 cat <<DONE
     28 
     29 ✓ Hydra uninstalled.
     30   Kept: your config + theme at ~/Library/Application Support/hydra/
     31         the device manifest at /Library/Application Support/hydra/ (harmless)
     32   Delete those by hand if you want a clean slate.
     33 DONE