Start AGS once, after the theme reapply

Claude-Session: https://claude.ai/code/session_014ADhvRXuiTvrXSbConxUey
This commit is contained in:
2026-08-19 14:00:43 -04:00
parent b126063701
commit 5780242068
3 changed files with 16 additions and 11 deletions
+12 -9
View File
@@ -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/"