Skip to content

Match 1Password's new window class so it floats again - #11704

Merged
dhh merged 1 commit into
quattrofrom
fix-1password-window-class
Sep 13, 2026
Merged

dhh merged 1 commit into
quattrofrom
fix-1password-window-class

Conversation

@dhh

@dhh dhh commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

1Password 8.12 renamed its app id from 1Password to com.onepassword.OnePassword (the packaged .desktop file now sets StartupWMClass=com.onepassword.OnePassword). The window rule in default/hypr/apps/1password.lua only matched the old name, so the main window came up tiled and also lost no_screen_share.

This matches both forms so older installs keep floating too, and drops the [p|P] character class typo that also matched a literal |.

Verified on 1Password 8.12.36 / Hyprland 0.56.2: relaunching 1Password with the new rule gives a floating, centered 875x600 window.

🤖 Generated with Claude Code

1Password 8.12 changed its app id from "1Password" to
"com.onepassword.OnePassword" (its .desktop file now declares that as
StartupWMClass). Our window rule only matched the old name, so the main
window came up tiled and lost the no_screen_share protection.

Match both forms so older installs keep working.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LSFKDatumRZHB8zqk5CP5C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants