Add optional service widgets on shell refresh

This commit is contained in:
David Heinemeier Hansson
2026-06-23 16:22:27 +02:00
parent 3fd36802ac
commit b30758dd2d
6 changed files with 197 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ GROUP_DESCRIPTIONS[hook]="User hook runner"
GROUP_DESCRIPTIONS[hw]="Hardware detection and controls"
GROUP_DESCRIPTIONS[hyprland]="Hyprland window, monitor, and toggle controls"
GROUP_DESCRIPTIONS[install]="Optional software installers"
GROUP_DESCRIPTIONS[installed]="Installed optional service checks"
GROUP_DESCRIPTIONS[launch]="Application launchers"
GROUP_DESCRIPTIONS[menu]="Omarchy menu commands"
GROUP_DESCRIPTIONS[migrate]="Migration runner"
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# omarchy:summary=Check whether Dropbox is installed and running
# omarchy:hidden=true
set -euo pipefail
if omarchy-cmd-present dropbox-cli && dropbox-cli running >/dev/null 2>&1; then
exit 0
fi
pgrep -x dropbox >/dev/null 2>&1
+12
View File
@@ -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
+11
View File
@@ -3,5 +3,16 @@
# omarchy:summary=Reset shell.json to Omarchy defaults
# omarchy:examples=omarchy refresh shell
set -euo pipefail
omarchy-refresh-config omarchy/shell.json
if omarchy-installed-service-dropbox; then
omarchy-config-shell-bar add omarchy.dropbox
fi
if omarchy-installed-service-tailscale; then
omarchy-config-shell-bar add omarchy.tailscale
fi
omarchy-restart-shell