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