Files
omarchy/migrations/1758107879.sh
2025-10-20 10:52:03 -04:00

46 lines
879 B
Bash

echo "Migrate to Walker 2.0.0"
NEEDS_MIGRATION=false
PACKAGES=(
"elephant"
"elephant-calc"
"elephant-clipboard"
"elephant-bluetooth"
"elephant-desktopapplications"
"elephant-files"
"elephant-menus"
"elephant-providerlist"
"elephant-runner"
"elephant-symbols"
"elephant-unicode"
"elephant-websearch"
"elephant-todo"
"walker"
)
for pkg in "${PACKAGES[@]}"; do
if ! omarchy-pkg-present "$pkg"; then
NEEDS_MIGRATION=true
break
fi
done
WALKER_MAJOR=$(walker -v 2>&1 | grep -oP '^\d+' || echo "0")
if [[ "$WALKER_MAJOR" -lt 2 ]]; then
NEEDS_MIGRATION=true
fi
if $NEEDS_MIGRATION; then
kill -9 $(pgrep -x walker) 2>/dev/null || true
omarchy-pkg-drop walker-bin walker-bin-debug
omarchy-pkg-add "${PACKAGES[@]}"
source $OMARCHY_PATH/install/config/walker-elephant.sh
rm -rf ~/.config/walker/themes
omarchy-refresh-walker
fi