The omarchy-bar command had grown three overlapping ways to inspect the bar (show/layout/list/options, plus selected/active/available/widgets aliases) and mixed layout mutation in with bar-level settings. Untangle it into two focused commands: - omarchy-bar keeps only the bar-level settings that write shell.json: use, reset, position, transparent, and settings. reset now delegates to `use omarchy.bar` rather than duplicating the del(.bar.id) write. - omarchy-bar-plugin owns all layout mutation: add, move, remove, set, and replace, with the placement flags and jq resolve/anchor helpers. `omarchy bar plugin ...` routes here via the dispatcher. Drop the inspection commands entirely: the layout is visible on the bar, the config is shell.json, and widget/option ids come from `omarchy plugin list`. Nothing consumed the show output programmatically except tests. This also removes omarchy-bar-position, whose jq write was a duplicate of `omarchy bar position`. Strip environment-invariant guards (require_command, require_omarchy_path) that defended against jq or OMARCHY_PATH being absent — neither happens on a real system. Keep the user-input validation (--section/--index) and the atomic shell.json write. Update callers (service install/remove, refresh-shell, plugin-clone, plugin enable), keybindings, the menu, tests, and docs to the new split.
20 lines
660 B
Bash
Executable File
20 lines
660 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Install the Tailscale mesh VPN service and a web app for the Tailscale Admin Console.
|
|
# omarchy:requires-sudo=true
|
|
|
|
echo -e "\nInstalling Tailscale..."
|
|
omarchy-pkg-add tailscale
|
|
|
|
echo -e "\nStarting Tailscale..."
|
|
sudo systemctl enable --now tailscaled.service
|
|
sudo tailscale up --accept-routes
|
|
|
|
echo -e "\nAllowing $USER to manage Tailscale..."
|
|
sudo tailscale set --operator="$USER"
|
|
|
|
echo -e "\nAdding Tailscale to the bar..."
|
|
omarchy-bar-plugin add omarchy.tailscale
|
|
|
|
omarchy-webapp-install "Tailscale" "https://login.tailscale.com/admin/machines" https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/tailscale-light.png
|