omarchy
omarchy copied to clipboard
omarchy-toggle-waybar creates inconsistent state on boot
Bug
omarchy-toggle-waybar toggles the waybar-off flag before checking whether waybar is running. This creates an inconsistent state that persists across reboots.
Steps to reproduce
- Boot with waybar not running (e.g. after a crash, race condition, or any reason waybar fails to start)
- Press
SUPER+SHIFT+SPACEto activate waybar - Waybar appears and is visible — but the
waybar-offflag is now set - Reboot — waybar does not start because the autostart check sees the flag
Root cause
In bin/omarchy-toggle-waybar:
omarchy-toggle waybar-off # toggles flag BEFORE checking state
if pgrep -x waybar >/dev/null; then
pkill -9 -x waybar
else
uwsm-app -- waybar >/dev/null 2>&1 &
fi
When waybar is not running:
omarchy-toggle waybar-offcreates the flag- Waybar starts (because it wasn't running)
- Result: waybar running + flag set → next boot skips autostart
Fix
Check whether waybar is running first, then toggle the flag to match:
if pgrep -x waybar >/dev/null; then
omarchy-toggle waybar-off
pkill -9 -x waybar
else
omarchy-toggle waybar-off
uwsm-app -- waybar >/dev/null 2>&1 &
fi
This ensures the flag always reflects the actual desired state.
Thanks for the report. This will be sorted with the release of quattro, as we've switched away from waybar onto Quickshell 👍