From 137c24454f2e5c438fb96650e8b5682522956681 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 5 Aug 2025 16:35:28 +0200 Subject: [PATCH] Ensure they can all run from Walker Which does not have the bash-powered PATH --- migrations/1751225707.sh | 2 +- migrations/1751887718.sh | 2 +- migrations/1752725616.sh | 2 +- migrations/1752896442.sh | 4 ++-- migrations/1752899588.sh | 2 +- migrations/1753062084.sh | 2 +- migrations/1753495989.sh | 2 +- migrations/1753558374.sh | 2 +- migrations/1753998861.sh | 2 +- migrations/1754108993.sh | 2 +- migrations/1754109724.sh | 2 +- migrations/1754113760.sh | 2 +- migrations/1754133148.sh | 4 ++-- migrations/1754136581.sh | 4 ++-- migrations/1754208139.sh | 3 ++- migrations/1754215439.sh | 2 +- migrations/1754228071.sh | 2 +- migrations/1754228679.sh | 2 +- migrations/1754265453.sh | 2 +- migrations/1754305112.sh | 2 +- migrations/1754331529.sh | 2 +- migrations/1754390772.sh | 2 +- 22 files changed, 26 insertions(+), 25 deletions(-) diff --git a/migrations/1751225707.sh b/migrations/1751225707.sh index 16387778..0ceded1c 100644 --- a/migrations/1751225707.sh +++ b/migrations/1751225707.sh @@ -2,5 +2,5 @@ echo "Fixing persistent workspaces in waybar config" if [[ -f ~/.config/waybar/config ]]; then sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config - omarchy-restart-waybar + ~/.local/share/omarchy/bin/omarchy-restart-waybar fi diff --git a/migrations/1751887718.sh b/migrations/1751887718.sh index d62fbdd0..dc679bef 100644 --- a/migrations/1751887718.sh +++ b/migrations/1751887718.sh @@ -2,5 +2,5 @@ echo "Install Impala as new wifi selection TUI" if ! command -v impala &>/dev/null; then yay -S --noconfirm --needed impala echo "You need to update the Waybar config to use Impala Wi-Fi selector in top bar." - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1752725616.sh b/migrations/1752725616.sh index 5dddefe9..f7bd2960 100644 --- a/migrations/1752725616.sh +++ b/migrations/1752725616.sh @@ -7,7 +7,7 @@ if [[ -f ~/.local/share/applications/blueberry.desktop ]]; then gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi if [[ ! -L "~/.config/omarchy/themes/rose-pine" ]]; then diff --git a/migrations/1752896442.sh b/migrations/1752896442.sh index 012acfc5..f1e16f5c 100644 --- a/migrations/1752896442.sh +++ b/migrations/1752896442.sh @@ -4,6 +4,6 @@ if ! command -v wiremix &>/dev/null; then yay -S --noconfirm --needed wiremix yay -Rns --noconfirm pavucontrol - omarchy-refresh-applications - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-applications + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1752899588.sh b/migrations/1752899588.sh index ba778cd8..32c3ba97 100644 --- a/migrations/1752899588.sh +++ b/migrations/1752899588.sh @@ -1,2 +1,2 @@ echo "Update .config/hypr/hyprlock.conf to include failed attempt counter" -omarchy-refresh-hyprlock +~/.local/share/omarchy/bin/omarchy-refresh-hyprlock diff --git a/migrations/1753062084.sh b/migrations/1753062084.sh index abfe326c..80406100 100644 --- a/migrations/1753062084.sh +++ b/migrations/1753062084.sh @@ -1,5 +1,5 @@ echo "Fix dancing workspace numbers in Waybar" if ! grep -q 'min-width: 9px' ~/.config/waybar/style.css; then - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1753495989.sh b/migrations/1753495989.sh index 5c0efcda..cfa411f3 100644 --- a/migrations/1753495989.sh +++ b/migrations/1753495989.sh @@ -1,5 +1,5 @@ echo "Allow updating of timezone by right-clicking on the clock (or running omarchy-cmd-tzupdate)" if ! command -v tzupdate &>/dev/null; then bash ~/.local/share/omarchy/install/config/timezones.sh - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1753558374.sh b/migrations/1753558374.sh index b961d3ed..a8735468 100644 --- a/migrations/1753558374.sh +++ b/migrations/1753558374.sh @@ -1,4 +1,4 @@ echo "Update Walker config to include = as the leader key for the calculator" if ! grep -q 'prefix = "="' ~/.config/walker/config.toml; then - omarchy-refresh-walker + ~/.local/share/omarchy/bin/omarchy-refresh-walker fi diff --git a/migrations/1753998861.sh b/migrations/1753998861.sh index 4751dee5..9145ec9c 100644 --- a/migrations/1753998861.sh +++ b/migrations/1753998861.sh @@ -1,4 +1,4 @@ echo "Update Walker config to include . as the leader key for the finder" if ! grep -q 'prefix = "\."' ~/.config/walker/config.toml; then - omarchy-refresh-walker + ~/.local/share/omarchy/bin/omarchy-refresh-walker fi diff --git a/migrations/1754108993.sh b/migrations/1754108993.sh index 59531e73..e49eac70 100644 --- a/migrations/1754108993.sh +++ b/migrations/1754108993.sh @@ -1,2 +1,2 @@ echo "Fix Plymouth login positioning in multi-monitor setups + limit password from overflowing" -omarchy-refresh-plymouth +~/.local/share/omarchy/bin/omarchy-refresh-plymouth diff --git a/migrations/1754109724.sh b/migrations/1754109724.sh index b8ff9096..421e37db 100644 --- a/migrations/1754109724.sh +++ b/migrations/1754109724.sh @@ -3,4 +3,4 @@ if ! command -v hyprsunset &>/dev/null; then yay -S --noconfirm --needed hyprsunset fi -omarchy-refresh-hyprsunset +~/.local/share/omarchy/bin/omarchy-refresh-hyprsunset diff --git a/migrations/1754113760.sh b/migrations/1754113760.sh index f66c1a4d..de654f53 100644 --- a/migrations/1754113760.sh +++ b/migrations/1754113760.sh @@ -6,5 +6,5 @@ if ! grep -q 'on_unlock_cmd *= *omarchy-restart-waybar' ~/.config/hypr/hypridle. on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking' \ ~/.config/hypr/hypridle.conf - omarchy-restart-waybar + ~/.local/share/omarchy/bin/omarchy-restart-waybar fi diff --git a/migrations/1754133148.sh b/migrations/1754133148.sh index 30294abb..010fba71 100644 --- a/migrations/1754133148.sh +++ b/migrations/1754133148.sh @@ -1,6 +1,6 @@ echo "Update Waybar CSS to dim unused workspaces" if ! grep -q "#workspaces button\.empty" ~/.config/waybar/style.css; then - omarchy-refresh-config waybar/style.css - omarchy-restart-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-config waybar/style.css + ~/.local/share/omarchy/bin/omarchy-restart-waybar fi diff --git a/migrations/1754136581.sh b/migrations/1754136581.sh index d2c78b94..11dc46d1 100644 --- a/migrations/1754136581.sh +++ b/migrations/1754136581.sh @@ -1,6 +1,6 @@ echo "Start screensaver automatically after 1 minute and stop before locking" if ! grep -q "omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then - omarchy-refresh-hypridle - omarchy-refresh-hyprlock + ~/.local/share/omarchy/bin/omarchy-refresh-hypridle + ~/.local/share/omarchy/bin/omarchy-refresh-hyprlock fi diff --git a/migrations/1754208139.sh b/migrations/1754208139.sh index d2f4dd58..c24407a2 100644 --- a/migrations/1754208139.sh +++ b/migrations/1754208139.sh @@ -1,4 +1,5 @@ echo "Ensure screensaver doesn't start while the computer is locked" + if ! grep -q "pidof hyprlock || omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then - omarchy-refresh-hypridle + ~/.local/share/omarchy/bin/omarchy-refresh-hypridle fi diff --git a/migrations/1754215439.sh b/migrations/1754215439.sh index 90651bb0..f234e1a3 100644 --- a/migrations/1754215439.sh +++ b/migrations/1754215439.sh @@ -1,5 +1,5 @@ echo "Update app launcher config to allow enough entries to show all keybindings on SUPER+K" if ! grep "max_entries = 200" ~/.config/walker/config.toml; then - omarchy-refresh-walker + ~/.local/share/omarchy/bin/omarchy-refresh-walker fi diff --git a/migrations/1754228071.sh b/migrations/1754228071.sh index e7b69b11..5d6bf957 100644 --- a/migrations/1754228071.sh +++ b/migrations/1754228071.sh @@ -1,5 +1,5 @@ echo "Add auto-update icon to waybar when update available" if ! grep -q "custom/update" ~/.config/waybar/config.jsonc; then - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1754228679.sh b/migrations/1754228679.sh index 2a80234d..3ff2f717 100644 --- a/migrations/1754228679.sh +++ b/migrations/1754228679.sh @@ -1,2 +1,2 @@ echo "Increase time before screensaver starts to 2.5 minutes (from 1 minute)" -omarchy-refresh-hypridle +~/.local/share/omarchy/bin/omarchy-refresh-hypridle diff --git a/migrations/1754265453.sh b/migrations/1754265453.sh index 412d75e0..274aa45f 100644 --- a/migrations/1754265453.sh +++ b/migrations/1754265453.sh @@ -1,2 +1,2 @@ echo "Add chromium-flags.conf" -omarchy-refresh-config chromium-flags.conf +~/.local/share/omarchy/bin/omarchy-refresh-config chromium-flags.conf diff --git a/migrations/1754305112.sh b/migrations/1754305112.sh index e23ea5d9..5d7e4ba0 100644 --- a/migrations/1754305112.sh +++ b/migrations/1754305112.sh @@ -1,2 +1,2 @@ echo "Restart Walker to pick up menu selections" -omarchy-restart-walker +~/.local/share/omarchy/bin/omarchy-restart-walker diff --git a/migrations/1754331529.sh b/migrations/1754331529.sh index ae92aae4..8ed51c24 100644 --- a/migrations/1754331529.sh +++ b/migrations/1754331529.sh @@ -1,5 +1,5 @@ echo "Update Waybar for new Omarchy menu" if ! grep -q "" ~/.config/waybar/config.jsonc; then - omarchy-refresh-waybar + ~/.local/share/omarchy/bin/omarchy-refresh-waybar fi diff --git a/migrations/1754390772.sh b/migrations/1754390772.sh index 86c95d65..943ac658 100644 --- a/migrations/1754390772.sh +++ b/migrations/1754390772.sh @@ -2,5 +2,5 @@ echo "Set SwayOSD max volume back to 100" if ! grep -q "max_volume = 100" ~/.config/swayosd/config.toml; then sed -i 's/max_volume = 150/max_volume = 100/' ~/.config/swayosd/config.toml - omarchy-restart-swayosd + ~/.local/share/omarchy/bin/omarchy-restart-swayosd fi