Add optional service widgets on shell refresh
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# omarchy:summary=Check whether Tailscale is installed and running
|
||||
# omarchy:hidden=true
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if omarchy-cmd-present tailscale && tailscale status --json >/dev/null 2>&1; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
systemctl is-active --quiet tailscaled.service >/dev/null 2>&1 || pgrep -x tailscaled >/dev/null 2>&1
|
||||
Reference in New Issue
Block a user