fix(install): hardcoded path, step count, launch flow
- 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
This commit is contained in:
1 file changed
+12
-13
+12
-13
@@ -82,7 +82,7 @@ INFO="ℹ"
|
|||||||
WARN="⚠"
|
WARN="⚠"
|
||||||
|
|
||||||
# Progress tracking
|
# Progress tracking
|
||||||
TOTAL_STEPS=11
|
TOTAL_STEPS=12
|
||||||
CURRENT_STEP=0
|
CURRENT_STEP=0
|
||||||
|
|
||||||
# Function for progress indicator
|
# Function for progress indicator
|
||||||
@@ -333,7 +333,7 @@ fi
|
|||||||
progress "Configuring Hyprland"
|
progress "Configuring Hyprland"
|
||||||
|
|
||||||
HYPR_CONFIG="$HOME/.config/hypr/hyprland.lua"
|
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
|
if [ -f "$HYPR_CONFIG" ]; then
|
||||||
step "Checking Hyprland Lua configuration..."
|
step "Checking Hyprland Lua configuration..."
|
||||||
@@ -355,17 +355,6 @@ else
|
|||||||
warn "Hyprland Lua config not found at $HYPR_CONFIG"
|
warn "Hyprland Lua config not found at $HYPR_CONFIG"
|
||||||
info "You may need to manually add: $MODUS_MODULE_LINE"
|
info "You may need to manually add: $MODUS_MODULE_LINE"
|
||||||
fi
|
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"
|
progress "Configuring global environment"
|
||||||
|
|
||||||
@@ -430,6 +419,16 @@ else
|
|||||||
info "Create it first or install matugen"
|
info "Create it first or install matugen"
|
||||||
fi
|
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..."
|
step "Starting Modus..."
|
||||||
if uwsm app -- uv run --project "$INSTALL_DIR" start >/dev/null 2>&1 & then
|
if uwsm app -- uv run --project "$INSTALL_DIR" start >/dev/null 2>&1 & then
|
||||||
disown
|
disown
|
||||||
|
|||||||
Reference in new issue
Block a user