omarchy/migrations/1754568612.sh
2025-08-07 16:26:32 +02:00

7 lines
411 B
Bash

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