From fe92a78f219ef8b9c4a16f2679aa366a0efe4349 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 7 Aug 2025 16:26:32 +0200 Subject: [PATCH] Use full path for omarchy-update on waybar icon --- config/waybar/config.jsonc | 2 +- migrations/1754568612.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 migrations/1754568612.sh diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 7523702a..cbf4cd22 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -52,7 +52,7 @@ "custom/update": { "format": "", "exec": "~/.local/share/omarchy/bin/omarchy-update-available", - "on-click": "alacritty --class Omarchy --title Omarchy -e omarchy-update", + "on-click": "alacritty --class Omarchy --title Omarchy -e ~/.local/share/omarchy/bin/omarchy-update", "interval": 3600 }, "cpu": { diff --git a/migrations/1754568612.sh b/migrations/1754568612.sh new file mode 100644 index 00000000..21ca99d7 --- /dev/null +++ b/migrations/1754568612.sh @@ -0,0 +1,6 @@ +echo "Update Waybar config to fix path issue with update-available icon click" + +if grep -q "alacritty --class Omarchy --title Omarchy -e omarchy-update" ~/.config/waybar/config.jsonc; then + sed -i 's|\("on-click": "alacritty --class Omarchy --title Omarchy -e \)omarchy-update"|\1~/.local/share/omarchy/bin/omarchy-update"|' ~/.config/waybar/config.jsonc + ~/.local/share/omarchy/bin/omarchy-restart-waybar +fi