From ae90b85f758daa84a407b6156be7e15b713ad730 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 12 Jul 2026 19:26:29 +0545 Subject: [PATCH] fix(install): hardcoded path, step count, launch flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace /home/sankalp/ with $INSTALL_DIR in MODUS_MODULE_LINE - Fix TOTAL_STEPS 11→12 to match actual progress calls - Move 'Launching Modus' to end (stop + start in one block) - Remove orphaned 'Starting Modus' step from under Matugen --- install.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index 005e0d7..7f813a8 100755 --- a/install.sh +++ b/install.sh @@ -82,7 +82,7 @@ INFO="ℹ" WARN="⚠" # Progress tracking -TOTAL_STEPS=11 +TOTAL_STEPS=12 CURRENT_STEP=0 # Function for progress indicator @@ -333,7 +333,7 @@ fi progress "Configuring Hyprland" HYPR_CONFIG="$HOME/.config/hypr/hyprland.lua" -MODUS_MODULE_LINE='dofile("/home/sankalp/.config/Modus/config/hypr/modus.lua")' +MODUS_MODULE_LINE="dofile(\"$INSTALL_DIR/config/hypr/modus.lua\")" if [ -f "$HYPR_CONFIG" ]; then step "Checking Hyprland Lua configuration..." @@ -355,17 +355,6 @@ else warn "Hyprland Lua config not found at $HYPR_CONFIG" info "You may need to manually add: $MODUS_MODULE_LINE" fi -# Launch Modus -progress "Launching Modus" - -step "Stopping existing instances..." -if killall modus 2>/dev/null; then - success "Stopped running instance" - sleep 1 -else - info "No existing instance found" -fi - progress "Configuring global environment" @@ -430,6 +419,16 @@ else info "Create it first or install matugen" fi +progress "Launching Modus" + +step "Stopping existing instances..." +if killall modus 2>/dev/null; then + success "Stopped running instance" + sleep 1 +else + info "No existing instance found" +fi + step "Starting Modus..." if uwsm app -- uv run --project "$INSTALL_DIR" start >/dev/null 2>&1 & then disown