Stop restarting waybar entirely on updates

This had problems and like this we also won't have an ugly flash
This commit is contained in:
David Heinemeier Hansson
2025-09-10 16:00:14 +02:00
parent a57060ee31
commit a66e8ebebd
4 changed files with 11 additions and 1 deletions

View File

@@ -7,4 +7,4 @@ omarchy-update-git
omarchy-migrate omarchy-migrate
omarchy-update-system-pkgs omarchy-update-system-pkgs
omarchy-update-restart omarchy-update-restart
omarchy-restart-waybar # removes update-available icon omarchy-update-available-reset

View File

@@ -0,0 +1,4 @@
#!/bin/bash
# Ensure Waybar icon offering the available update is removed
pkill -RTMIN+7 waybar

View File

@@ -48,6 +48,7 @@
"exec": "omarchy-update-available", "exec": "omarchy-update-available",
"on-click": "omarchy-launch-floating-terminal-with-presentation omarchy-update", "on-click": "omarchy-launch-floating-terminal-with-presentation omarchy-update",
"tooltip-format": "Omarchy update available", "tooltip-format": "Omarchy update available",
"signal": 7,
"interval": 3600 "interval": 3600
}, },

5
migrations/1757512135.sh Normal file
View File

@@ -0,0 +1,5 @@
echo "Make it possible to remove update-available icon with signal in Waybar"
if ! grep -q '"signal": 7' ~/.config/waybar/config.jsonc; then
sed -i '/"tooltip-format": "Omarchy update available",/a\ "signal": 7,' ~/.config/waybar/config.jsonc
fi