Start AGS once, after the theme reapply
Claude-Session: https://claude.ai/code/session_014ADhvRXuiTvrXSbConxUey
This commit is contained in:
+12
-9
@@ -388,15 +388,6 @@ else
|
||||
echo "Warning: omarchy-restart-shell not found. Please restart the shell manually."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Restarting AGS ==="
|
||||
if command -v ags &> /dev/null; then
|
||||
ags quit || true
|
||||
nohup ags run -d "$HOME_DIR/.config/ags" >/dev/null 2>&1 &
|
||||
else
|
||||
echo "Warning: ags not found. Please start ags manually."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Reloading Hyprland ==="
|
||||
if command -v hyprctl &> /dev/null; then
|
||||
@@ -414,6 +405,18 @@ else
|
||||
echo "Warning: no active theme found. Run blob_theme to generate zen.css."
|
||||
fi
|
||||
|
||||
# Started after the theme reapply, because the theme-set hook restarts AGS
|
||||
# too. Starting it first only races that hook for the instance name.
|
||||
echo ""
|
||||
echo "=== Restarting AGS ==="
|
||||
if command -v ags &> /dev/null; then
|
||||
ags quit >/dev/null 2>&1 || true
|
||||
sleep 0.5
|
||||
nohup ags run -d "$HOME_DIR/.config/ags" >/dev/null 2>&1 &
|
||||
else
|
||||
echo "Warning: ags not found. Please start ags manually."
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=== Installation Complete ==="
|
||||
echo "Scripts are in: $HOME_DIR/scripts/"
|
||||
|
||||
Reference in New Issue
Block a user