omarchy
omarchy copied to clipboard
Fix window matching for PWAs
The \b word boundaries in regex weren't matching browser PWA classes like brave-web.whatsapp.com__-Default Dots broke the boundaries, so the script skipped the real web app and grabbed whatever came first—like a terminal editing Whatsapp.desktop.
The fix: Swap \b for (^|[\\.-]) before the pattern and ($|[\\.-]) after. Now it matches when the app name is at the start/end or next to dots/hyphens.
This keeps things precise (no false positives) while fixing PWAs.
One line changed, focusing back to WhatsApp now works correctly.
Fixes: https://github.com/basecamp/omarchy/issues/3669