Link the package into the existing plugin directory and let bar put handle enablement, clock-relative placement, and the missing-clock fallback. Preserve user checkouts and existing placements, and seed the same link for new users. This removes the Atreyu packaged-discovery prerequisite and the checkout cleanup and JSON rewrite machinery.
14 lines
382 B
Bash
14 lines
382 B
Bash
echo "Install Elsewhen, the world clock plugin"
|
|
|
|
omarchy-pkg-add elsewhen
|
|
|
|
plugin="$HOME/.config/omarchy/plugins/omacom.elsewhen"
|
|
mkdir -p "$(dirname "$plugin")"
|
|
if [[ ! -e $plugin && ! -L $plugin ]]; then
|
|
ln -s /usr/share/omarchy/plugins/omacom.elsewhen "$plugin"
|
|
fi
|
|
|
|
omarchy-shell shell rescanPlugins
|
|
omarchy-bar put omacom.elsewhen --before omarchy.clock
|
|
omarchy-restart-shell
|