dots


commit
c1044c8
parent
8a28b21
author
xxwhirlpool
date
2026-04-04 15:23:12 -0400 EDT
ts vpn toggle script
1 files changed,  +21, -0
A config/.local/bin/tsvpn_toggle
+21, -0
 1@@ -0,0 +1,21 @@
 2+#!/usr/bin/env bash
 3+#
 4+# having some weird issues with split tunneling VPN + tailscale
 5+# this'll have to do for now :/
 6+
 7+vpnon_tsoff() {
 8+	mullvad connect
 9+	tailscale down
10+}
11+
12+vpnoff_tson() {
13+	mullvad disconnect
14+	tailscale up
15+}
16+
17+choose=$(gum choose "tson_vpnoff" "tsoff_vpnon")
18+case "$choose" in
19+    "tson_vpnoff") vpnon_tsoff ;;
20+    "tsoff_vpnon") vpnoff_tson ;;
21+    *) exit;;
22+esac