Add optional service widgets on shell refresh
This commit is contained in:
@@ -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"
|
||||
|
||||
Executable
+12
@@ -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
|
||||
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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user