omarchy-shell's bar plugin replaces waybar on every default path, so the
waybar package, configs, indicator scripts, and toggle/restart/refresh
binaries all go away in this commit.
The four small helper scripts that Bar.qml shells out to (weather.sh and
indicators/*.sh) move with the shell rather than disappear \u2014 they live
at default/quickshell/omarchy-shell/scripts/ now, alongside the rest of
the shell code.
Companion script changes:
- omarchy-shell-ipc gains --if-running so fire-and-forget refresh
callers (toggle-idle, toggle-notification-silencing,
update-available-reset, capture-screenrecording) don't accidentally
spawn the shell when it isn't already up.
- omarchy-theme-set, omarchy-tz-select, omarchy-voxtype-{install,model},
omarchy-toggle-nightlight, omarchy-voxtype-config drop their waybar
branches and comments.
- omarchy-voxtype-status's summary stops claiming it's a Waybar helper.
- omarchy-base.packages drops waybar; install/packaging/fonts.sh's
comment points at the new bar consumer.
- SKILL.md / AGENTS.md / omarchy-menu.jsonc lose their waybar entries.
- test/omarchy-cli-test.sh substitutes a remaining toggle command.
25 lines
606 B
Bash
Executable File
25 lines
606 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Stream voxtype --follow status as bar-friendly JSON
|
|
|
|
if omarchy-cmd-present voxtype; then
|
|
coproc VOXTYPE_STATUS { voxtype status --follow --extended --format json; }
|
|
voxtype_pid=$VOXTYPE_STATUS_PID
|
|
|
|
cleanup() {
|
|
kill "$voxtype_pid" 2>/dev/null || true
|
|
}
|
|
|
|
trap cleanup EXIT INT TERM
|
|
|
|
while IFS= read -r line <&"${VOXTYPE_STATUS[0]}"; do
|
|
if omarchy-cmd-present jq; then
|
|
jq -c '. + {alt: (.class // "")}' <<<"$line" || printf '%s\n' "$line"
|
|
else
|
|
printf '%s\n' "$line"
|
|
fi
|
|
done
|
|
else
|
|
echo '{"alt": "", "class": "idle", "tooltip": ""}'
|
|
fi
|