From 572bbf823b3d00589b13af184cfb4b1229244894 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 20 Oct 2025 10:49:26 -0400 Subject: [PATCH] Update walker migration to run for everyone --- migrations/1758107878.sh | 26 ----------------------- migrations/1758107879.sh | 45 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 26 deletions(-) delete mode 100644 migrations/1758107878.sh create mode 100644 migrations/1758107879.sh diff --git a/migrations/1758107878.sh b/migrations/1758107878.sh deleted file mode 100644 index 52fe818..0000000 --- a/migrations/1758107878.sh +++ /dev/null @@ -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 diff --git a/migrations/1758107879.sh b/migrations/1758107879.sh new file mode 100644 index 0000000..059a0c5 --- /dev/null +++ b/migrations/1758107879.sh @@ -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