summaryrefslogtreecommitdiff
path: root/private_dot_local/bin/executable_toggle-vpn
diff options
context:
space:
mode:
Diffstat (limited to 'private_dot_local/bin/executable_toggle-vpn')
-rw-r--r--private_dot_local/bin/executable_toggle-vpn9
1 files changed, 9 insertions, 0 deletions
diff --git a/private_dot_local/bin/executable_toggle-vpn b/private_dot_local/bin/executable_toggle-vpn
new file mode 100644
index 0000000..3441e64
--- /dev/null
+++ b/private_dot_local/bin/executable_toggle-vpn
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3if ip address | grep wg0; then
4 sudo herd stop wireguard-wg0
5else
6 sudo herd start wireguard-wg0
7fi
8
9pkill -SIGRTMIN+9 waybar