Files
dotfiles/waybar/scripts/tailscale-toggle.sh
2026-02-23 19:35:58 +01:00

8 lines
144 B
Bash
Executable File

#!/usr/bin/env bash
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
tailscale down
else
tailscale up
fi