Kill waybar proper and restart on suspecion that SIGUSR2 is whats causing the stacking bug

This commit is contained in:
David Heinemeier Hansson
2025-07-16 21:13:36 -07:00
parent 4f565b743a
commit 9a2d8852d3
3 changed files with 6 additions and 3 deletions

View File

@ -6,5 +6,6 @@ if gum confirm "Refresh Waybar config? This will replace your current settings w
cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null
# Restart waybar
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &
fi

View File

@ -29,7 +29,8 @@ ln -nsf "$THEME_PATH" "$CURRENT_THEME_DIR"
touch "$HOME/.config/alacritty/alacritty.toml"
# Restart components to apply new theme
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &
makoctl reload
hyprctl reload

View File

@ -1,3 +1,4 @@
echo "Fixing persistent workspaces in waybar config"
sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config
pkill -SIGUSR2 waybar
pkill waybar
setsid waybar >/dev/null 2>&1 &