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." echo "Warning: omarchy-restart-shell not found. Please restart the shell manually."
fi 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 ""
echo "=== Reloading Hyprland ===" echo "=== Reloading Hyprland ==="
if command -v hyprctl &> /dev/null; then 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." echo "Warning: no active theme found. Run blob_theme to generate zen.css."
fi 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 ""
echo "=== Installation Complete ===" echo "=== Installation Complete ==="
echo "Scripts are in: $HOME_DIR/scripts/" echo "Scripts are in: $HOME_DIR/scripts/"
+2 -1
View File
@@ -7,6 +7,7 @@ awk -F '=' 'NF==2 { gsub(/"/,"",$2); gsub(/ /,"",$1); gsub(/ /,"",$2); print "@d
# Restart AGS to apply new theme colors # Restart AGS to apply new theme colors
if command -v ags &> /dev/null; then if command -v ags &> /dev/null; then
ags quit || true ags quit >/dev/null 2>&1 || true
sleep 0.5
nohup ags run -d "$HOME/.config/ags" >/dev/null 2>&1 & nohup ags run -d "$HOME/.config/ags" >/dev/null 2>&1 &
fi fi
+2 -1
View File
@@ -112,7 +112,8 @@ fi
echo "" echo ""
echo "=== Restarting AGS ===" echo "=== Restarting AGS ==="
if command -v ags &> /dev/null; then if command -v ags &> /dev/null; then
ags quit || true ags quit >/dev/null 2>&1 || true
sleep 0.5
nohup ags run -d "$HOME_DIR/.config/ags" >/dev/null 2>&1 & nohup ags run -d "$HOME_DIR/.config/ags" >/dev/null 2>&1 &
else else
echo "Warning: ags not found. Please start ags manually." echo "Warning: ags not found. Please start ags manually."