Convert existing migrations to set states

This commit is contained in:
Ryan Hughes
2025-08-11 00:46:53 +02:00
parent b1949fd7eb
commit 1eb8a56b07
7 changed files with 7 additions and 7 deletions

View File

@@ -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
omarchy-state set restart-waybar-required
fi

View File

@@ -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
omarchy-state set restart-waybar-required
fi

View File

@@ -2,5 +2,5 @@ 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
omarchy-state set restart-waybar-required
fi

View File

@@ -1,2 +1,2 @@
echo "Restart Walker to pick up menu selections"
omarchy-restart-walker
omarchy-state set restart-walker-required

View File

@@ -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
omarchy-state set restart-swayosd-required
fi

View File

@@ -1,4 +1,4 @@
echo "Update and restart Walker to resolve stuck Omarchy menu"
yay -Sy --noconfirm walker-bin
omarchy-restart-walker
omarchy-state set restart-walker-required

View File

@@ -2,5 +2,5 @@ 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"|\1omarchy-update"|' ~/.config/waybar/config.jsonc
omarchy-restart-waybar
omarchy-state set restart-waybar-required
fi