swadhinbiswas Initial de-omarchy: Omarchy UI layer for Arch-based distros · 8/22/2026
9f393b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# omarchy:summary=Emit every first-party and user plugin manifest as JSON
# omarchy:group=plugin
# omarchy:hidden=true
# Walks $OMARCHY_PATH/shell/plugins and ~/.config/omarchy/plugins, reads every
# manifest.json / *.manifest.json, and emits one JSON object per plugin with
# computed fields (sourceDir, barWidgetPath, barPath, firstParty). This is the
# single source of truth used by bar selection and plugin enable/clone, so
# those commands never re-implement manifest walking.
set -o pipefail
paths=()
while IFS= read -r manifest; do
paths+=("$manifest")
done < <(find "$OMARCHY_PATH/shell/plugins" -mindepth 2 -maxdepth 4 -type f \( -name manifest.json -o -name '*.manifest.json' \) | sort)
user_dir="$HOME/.config/omarchy/plugins"
if [[ -d $user_dir ]]; then
while IFS= read -r manifest; do
paths+=("$manifest")
done < <(find -L "$user_dir" -mindepth 2 -maxdepth 2 -type f -name manifest.json \
! -path "$user_dir/.*/*" 2>/dev/null | sort)
fi
if (( ${#paths[@]} == 0 )); then
echo "[]"
exit 0
fi
jq -n '
[ inputs
| . as $manifest
| input_filename as $manifestPath
| ($manifestPath | sub("/manifest.json$"; "") | sub("/[^/]+\\.manifest\\.json$"; "")) as $sourceDir
| {
id: ($manifest.id // ""),
name: ($manifest.name // $manifest.id // ""),
description: ($manifest.description // ""),
kinds: ($manifest.kinds // []),
firstParty: (($manifest.id // "") | startswith("omarchy.")),
manifestPath: $manifestPath,
sourceDir: $sourceDir,
entryPoints: ($manifest.entryPoints // {}),
barWidget: ($manifest.barWidget // null),
bar: ($manifest.bar // null)
}
| .barWidgetPath = (
if (.entryPoints.barWidget // null) != null
then (.sourceDir + "/" + .entryPoints.barWidget)
else null end)
| .barPath = (
if (.entryPoints.bar // null) != null
then (.sourceDir + "/" + .entryPoints.bar)
else null end)
| select(.id != "")
]
| unique_by(.id)
' "${paths[@]}"