Files
omarchy/migrations/1790042972.sh
T

14 lines
624 B
Bash

echo "Put Elsewhen, the world clock, on the bar"
# Best-effort, like the put below: an update whose shell cannot be asked still
# finishes, and restarts the shell once the migrations are through.
omarchy-shell -q shell rescanPlugins
# A legacy omacom.elsewhen entry is renamed in place by a later migration.
config_file="$HOME/.config/omarchy/shell.json"
if [[ -s $config_file ]] && jq -e '[.bar.layout[]?[]? | if type == "object" then .id else . end] | index("omacom.elsewhen")' "$config_file" >/dev/null 2>&1; then
echo "Elsewhen is already on the bar"
else
omarchy-bar put omarchy.elsewhen --after omarchy.clock
fi