Skip to content

Commit 52653c7

Browse files
dhhmanuel1618
authored andcommitted
Stop restarting waybar entirely on updates
This had problems and like this we also won't have an ugly flash
1 parent 5eecdf0 commit 52653c7

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

bin/omarchy-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ omarchy-update-git
77
omarchy-migrate
88
omarchy-update-system-pkgs
99
omarchy-update-restart
10-
omarchy-restart-waybar # removes update-available icon
10+
omarchy-update-available-reset

bin/omarchy-update-available-reset

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# Ensure Waybar icon offering the available update is removed
4+
pkill -RTMIN+7 waybar

config/waybar/config.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"exec": "omarchy-update-available",
4949
"on-click": "omarchy-launch-floating-terminal-with-presentation omarchy-update",
5050
"tooltip-format": "Omarchy update available",
51+
"signal": 7,
5152
"interval": 3600
5253
},
5354

migrations/1757512135.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
echo "Make it possible to remove update-available icon with signal in Waybar"
2+
3+
if ! grep -q '"signal": 7' ~/.config/waybar/config.jsonc; then
4+
sed -i '/"tooltip-format": "Omarchy update available",/a\ "signal": 7,' ~/.config/waybar/config.jsonc
5+
fi

0 commit comments

Comments
 (0)