mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Convert existing migrations to set states
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
echo "Restart Walker to pick up menu selections"
|
||||
omarchy-restart-walker
|
||||
omarchy-state set restart-walker-required
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user