Use full path for omarchy-update on waybar icon

This commit is contained in:
David Heinemeier Hansson 2025-08-07 16:26:32 +02:00
parent 7bb9214c66
commit fe92a78f21
2 changed files with 7 additions and 1 deletions

View File

@ -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": {

6
migrations/1754568612.sh Normal file
View File

@ -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