Update walker migration to run for everyone

This commit is contained in:
Ryan Hughes
2025-10-20 10:49:26 -04:00
parent f297ad1e99
commit 572bbf823b
2 changed files with 45 additions and 26 deletions

View File

@@ -1,26 +0,0 @@
echo "Migrate to Walker 2.0.0"
# Ensure we kill walker even if there's a restarting service running
kill -9 $(pgrep -x walker)
omarchy-pkg-drop walker-bin walker-bin-debug
omarchy-pkg-add 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
source $OMARCHY_PATH/install/config/walker-elephant.sh
rm -rf ~/.config/walker/themes
omarchy-refresh-walker

45
migrations/1758107879.sh Normal file
View File

@@ -0,0 +1,45 @@
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