feat(waybar): update
This commit is contained in:
7
waybar/scripts/tailscale-toggle.sh
Executable file
7
waybar/scripts/tailscale-toggle.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
||||
tailscale down
|
||||
else
|
||||
tailscale up
|
||||
fi
|
||||
7
waybar/scripts/tailscale.sh
Executable file
7
waybar/scripts/tailscale.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
||||
echo '{"text":" Connected","class":"connected","tooltip":"Tailscale Connected"}'
|
||||
else
|
||||
echo '{"text":" Disconnected","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
||||
fi
|
||||
Reference in New Issue
Block a user