`omarchy display text size` breaks 1Password's fixed-size dialogs (root cause of #2016)
Summary
omarchy display text size (and the Display panel's Text size slider) sets GNOME's text-scaling-factor. Chromium/Electron apps multiply that factor into their device scale factor, which shrinks the usable layout area of any fixed-size window by the same factor. 1Password's SSH authorization prompt is such a window — ~402x371 logical px with min size = max size — so at text size 16 (factor 1.3636) about 26% of the dialog's content, including the authorize button, is pushed off-window.
This is the root cause behind #2016 ("1Password authorization window cut off"), which was closed without a fix and attributed to a 1Password regression. It also explains the confusing per-machine variance reported there (same monitor scale, different outcome): the trigger is the text scale, not the monitor scale.
Reproduce
omarchy display text size 16(any value above 12 works; bigger is worse)- Restart 1Password so it picks the factor up, enable its SSH agent
- Trigger any SSH signature, e.g. without touching the network:
ssh-add -L > /tmp/k.pub SSH_AUTH_SOCK=~/.1password/agent.sock ssh-keygen -Y sign -f /tmp/k.pub -U -n test /etc/hostname - The authorization dialog appears with its checkbox/buttons clipped.
The dialog cannot be rescued compositor-side: it reports min size = max size, so size window rules and hl.dsp.window.resize(...) are silently ignored — which is why the window-rule attempts in #2016 only ever affected the main window.
Root cause, measured
Chromium computes its device scale on Wayland as monitor scale x text-scaling-factor. Verified with a scratch Chromium and CDP (Runtime.evaluate on window.devicePixelRatio via --remote-debugging-port), on a 2x monitor with text size 16 (factor 1.3636):
| Launch | devicePixelRatio |
|---|---|
| baseline | 2.71875 (= 2 x 1.36) |
GDK_DPI_SCALE=0.733 |
2.71875 — no effect on Chromium |
--force-device-scale-factor=2 |
4.0 — multiplies, worse |
GSETTINGS_BACKEND=memory |
2.0 — fixed |
The window frame stays at its fixed logical size while the app lays out at the inflated DPR, so the dialog's 402 logical px become 402 x 2 / 2.72 ≈ 295 CSS px of layout — content designed for 402 gets clipped. The same math applies to the main window (the 875x600 floating-window tag default becomes ~643 effective px — the "1Password window too small" complaints).
Fix
Launch 1Password with GSETTINGS_BACKEND=memory: in-process gsettings reads come back as defaults, so it renders at the plain monitor scale and every fixed-size dialog gets its full designed layout (the SSH prompt even sizes itself taller, 402x426 here, everything visible). Dark/light detection is portal-based and keeps working.
One gotcha makes placement non-obvious: 1Password rewrites ~/.config/autostart/1password.desktop on startup, so the env cannot live in the autostart desktop file. Since Omarchy runs XDG autostart entries as app-<name>@autostart.service units, a systemd user drop-in survives:
# /etc/systemd/user/[email protected]/text-scaling.conf
[Service]
Environment=GSETTINGS_BACKEND=memory
PR incoming that applies this on every launch path (launcher, installer, desktop override, packaged autostart drop-in, migration). Bitwarden and other Electron apps with fixed-size dialogs have the same exposure; the trade-off (the app renders at standard size instead of following the text scale; in-app Ctrl+= compensates) is documented in the drop-in.
The proper fix belongs to 1Password (size fixed dialogs in CSS px, or make them resizable) — worth reporting upstream too, but Omarchy controls the trigger, so a guard here helps users today.
Environment
- Omarchy 4.0.1-1, Hyprland 0.56.2
- 1Password 8.12.32 (conceptually matches the 8.11.x reports in #2016)
- Monitor 3840x2160 @ scale 2;
text-scaling-factor1.3636 (set byomarchy display text size 16)
(No screenshot: Omarchy correctly tags 1Password no_screen_share, captures come out black.)
Independent confirmation, plus three things that widen the scope of this.
1. It also happens at fractional monitor scale, not just integer scale.
This machine is eDP-1 at 2880x1800, scale = 1.5, with text-scaling-factor = 1.1818 (from omarchy display text size 14, default Adwaita Sans 11 interface font). Chromium under native Wayland, measured in an identical 941x1141 window with a page reporting devicePixelRatio and innerWidth/innerHeight:
| Configuration | DPR | CSS viewport |
|---|---|---|
text-scaling-factor = 1.1818 |
1.78125 | 793 x 961 |
GSETTINGS_BACKEND=memory |
1.5 | 941 x 1141 |
--force-device-scale-factor=1 |
1.5 | 941 x 1141 |
1.78125 = 1.5 x 1.1875, i.e. 1.1818 rounded to a 1/16 step — the same arithmetic as the 2.71875 in the original report, so the mechanism is scale-independent.
2. A second affected app, with a harder failure mode: Typora.
Typora's "License Info" window is a fixed 495x379 logical-px window that the compositor cannot resize (Hyprland resize dispatches are no-ops against it). At DPR 1.78125 against a 1.5 monitor the page gets 417 x 319 CSS px instead of 495 x 379 — roughly 60px of height gone, which is exactly the license input field and the Activate button.
That is worse than the 1Password case: 1Password's prompt can still be driven blind with Enter, but an unlicensed Typora cannot be activated at all, because the only field that accepts the key is off-window and unreachable. On screen the dialog shows the logo and "Activate Typora" heading filling the frame, with only the top edge of the input box and the button visible at the bottom cutoff.
So the exposure is not limited to 1Password and Bitwarden — it is every Electron app with a fixed-size, non-resizable dialog.
3. Two dead ends, in case they save anyone triage time.
- Not a Hyprland window rule. No Omarchy rule matches Typora; the window carries only the
default-opacitytag. - Not
GDK_SCALE.~/.config/hypr/monitors.luashipsGDK_SCALE=2, which looks like a likely culprit, but it is not:GDK_SCALE=1andGDK_SCALE=2give byte-identical DPR and viewport readings for native-Wayland Chromium. It has no effect on Electron here.
On the proposed fix: the GSETTINGS_BACKEND=memory systemd drop-in works for apps Omarchy autostarts as a unit, but it does not cover apps launched from a desktop entry or a package wrapper. For those, --force-device-scale-factor=1 is an equivalent per-app lever and is narrower — it overrides only the scale factor rather than blanking every in-process gsettings value (theme, fonts, a11y). It fixed Typora here via the Arch package's ~/.config/typora-flags.conf hook, and works for 1Password by adding the switch to Exec= in a ~/.local/share/applications/1password.desktop override plus ~/.config/autostart/1password.desktop.
System: Omarchy 4.0.1-1, Hyprland 0.56.2, kernel 7.1.9-arch1-2, Intel Core Ultra 7 258V / Arc 140V (xe, Mesa 26.2.1), Typora 1.14.9.
Open PR #8825 directly addresses the display slider changing GTK application scale. The slider now invokes the scaling command with --no-gtk, while the CLI retains an explicit path for users who intentionally want GTK scaling. Direct script calls without the flag are outside the PR scope.
Confirming on text size 14 (text-scaling-factor 1.1818). 1Password's authorize dialog was clipped and Hyprland size rules did nothing (min = max). Relaunching with GSETTINGS_BACKEND=memory and --force-device-scale-factor=1 fixed it. Same fix as #8575.
Additional independent reproduction on Omarchy 4.0.4-1, Hyprland 0.56.2, kernel 7.2.5-3-omarchy, AMD Ryzen AI MAX+ 395 / Radeon 8060S, and Electron 43.6.0, with a 3840×2160 monitor at scale 1.25.
Keeping the compositor scale fixed, a clean native-Wayland Electron window reports:
| GTK text-scaling-factor | Monitor scale | window.devicePixelRatio |
|---|---|---|
| 1.0 (memory GSettings backend defaults) | 1.25 | 1.25 |
| 1.2222 (isolated keyfile GSettings backend) | 1.25 | 1.5234375 |
The page's CSS font size stays 16px. The second result is consistent with monitor scale × GTK text multiplier, subject to rounding. This corroborates the scaling interaction described here; I have not independently reproduced the 1Password dialog clipping or the transparent-surface problem in #8716.
Minimal probe (probe.cjs):
const { app, BrowserWindow, screen } = require('electron');
app.whenReady().then(async () => {
const win = new BrowserWindow({
width: 640, height: 360, show: true, focusable: false,
webPreferences: { contextIsolation: true, nodeIntegration: false }
});
await win.loadURL('data:text/html,<p style="font:16px sans-serif">Scaling probe</p>');
// Wait for the Wayland surface to receive its output scale.
await new Promise(resolve => setTimeout(resolve, 750));
console.log({ monitorScale: screen.getPrimaryDisplay().scaleFactor,
dpr: await win.webContents.executeJavaScript('devicePixelRatio') });
app.quit();
});
GSETTINGS_BACKEND=memory electron43 --ozone-platform=wayland probe.cjs
probe_config=$(mktemp -d)
XDG_CONFIG_HOME="$probe_config" GSETTINGS_BACKEND=keyfile \
gsettings set org.gnome.desktop.interface text-scaling-factor 1.2222
XDG_CONFIG_HOME="$probe_config" GSETTINGS_BACKEND=keyfile \
electron43 --ozone-platform=wayland probe.cjs
Both launches use isolated settings rather than changing the desktop's live GTK preference. Measuring a hidden window before Wayland maps it initially returned DPR 1, so the probe deliberately waits after showing the window.
For desktop consistency, a useful design direction would be to distinguish per-monitor display scale from shell/bar text size and application text preferences. On this machine, keeping the GTK multiplier at 1.0 while assigning explicit text sizes to the relevant UI roles removed the unintended Electron enlargement. That is a local configuration result, not a claim that ignoring GTK accessibility text scaling is a universal fix. A regression probe like the above could help evaluate the trade-offs.
I checked this against current quattro. The mechanism is real, but only part of it is fixed there.
The mechanism, reproduced. On a clean Omarchy worker (Chromium, native Wayland, one monitor at scale 1), setting text-scaling-factor to 1.3636, the value omarchy display text size 16 writes in bin/omarchy-display-text-size, raised devicePixelRatio from 1 to 1.359375. The CSS layout width of the same window dropped from 1256 to 925 px. Adding --force-device-scale-factor=1 brought it back to DPR 1 and 1256 px, and so did GSETTINGS_BACKEND=memory. I did not reproduce the 1Password dialog itself: that needs a signed-in 1Password with its SSH agent, which the worker doesn't have.
What quattro already covers. #10673 (446fbc28b) starts 1Password with --force-device-scale-factor=1 from bin/omarchy-launch-1password, which is the hotkey and the menu entry. omacom/omarchy-pkgs#342 adds the same flag to Exec= in the packaged 1password.desktop, which covers the app launcher. The flag cancels the text-scaling multiplier, as measured above.
What is still exposed:
- 1Password's own autostart entry,
~/.config/autostart/1password.desktop. Neither repository adds the flag there, and you report that 1Password rewrites that file on startup. The SSH agent usually runs from this background instance, so the dialog in this report still comes up unprotected. - The first launch after install:
bin/omarchy-install-service-1password:31runsuwsm-app -- 1passwordwithout the flag. - An instance already started without the flag stays at the inflated scale. A later launch through the pinned launcher only hands off to it, so 1Password has to be fully quit before the fix takes effect.
Open pull requests. #8575 covers the remaining paths with GSETTINGS_BACKEND=memory, including a drop-in for the autostart unit. It already closes this issue, but it now conflicts with quattro because #10673 changed the same launcher line with the other lever. #10673 also dropped a user-level .desktop override in favour of the package, and #8575 adds one. #8825 takes a different route: the slider stops writing the GTK factor at all. Which approach to take is the maintainer's call, so this waits on them. #8575 and #8825 are being reviewed on their own.
Second opinion: Codex at medium effort reviewed this separately. It agreed on the mechanism and the launch-path coverage, and it independently found that the installer's first launch is not covered. Its independence is not guaranteed. Neither of us could confirm 1Password's autostart rewrite from source, so that part rests on this report.
Same here at text size 14, and not only in 1Password. Typora and other fixed-size Electron pop-ups get clipped too.
The root cause is in Chromium, which sends the window's min and max size without the text scale, so Hyprland shrinks the window. I sent a fix upstream in https://crrev.com/c/8692628. It's in review now. Until it lands and apps update their Chromium, the workarounds here are still needed.
For AI agents
Repro
- Hyprland 0.56.2, monitor scale 1,
text-scaling-factor1.1818 (omarchy display text size 14). Chromium sanitizes it toui_scale1.1875. - Electron 42 or 43,
new BrowserWindow({width: 500, height: 380, resizable: false}), run with--ozone-platform=waylandandWAYLAND_DEBUG=1. - The client sends
xdg_toplevel.set_min_size(500, 380),set_max_size(500, 380)andxdg_surface.set_window_geometry(0, 0, 594, 452). Hyprland configures 500x380, the page reportsdevicePixelRatio1.1875, and the content laid out for 594x452 is clipped. --force-device-scale-factor=1.1875with text scaling at 1.0 shows the same bug.
Where to look
ui/ozone/platform/wayland/host/wayland_toplevel_window.cc,WaylandToplevelWindow::SetSizeConstraints(): sends the delegate's min and max size withoutui_scale, while the window geometry is converted with it.- Same file,
WaylandToplevelWindow::UpdateWindowScale(): resends the constraints only when the buffer scale changes, not whenui_scaledoes.
Why not in Hyprland or Omarchy
- Window rules
no_max_size = trueandmax_sizedon't help. Hyprland sends the larger configure, then clamps back to the client's max size right away. - Per-app
--force-device-scale-factor=1orGSETTINGS_BACKEND=memory(#8575, #13910) avoid the trigger but drop the larger text for that app.
Done when
- crrev.com/c/8692628 lands. It converts the constraints with
BoundsSizeToGeometrySizeDIP(), the conversion the window geometry uses, and resends them whenui_scalechanges. Chromium issue 566940916. - Apps that bundle their own Electron, such as Typora (Electron 42) and 1Password, move to a Chromium that has the CL. A fixed-size dialog then maps at its full geometry with text size above 12.
Written with coexist
Chromium CL 8692628 merged on November 10 as a360d475f5a875985a7711581fe34568492c3d2f. I checked the merged patch: it converts the minimum/maximum window sizes with the same text-scale conversion as window geometry, and resends those constraints when the text scale changes. The mismatch made compositors clamp fixed-size windows below their content size.
A correction to my October 9 comment: the worker's higher DPR and smaller CSS viewport demonstrated text scaling, which is intended. That run did not reproduce the fixed-size constraint mismatch itself. The upstream source now identifies that clipping defect more precisely; its fix preserves larger text by matching the constraints to the enlarged window geometry.
On quattro at c6be7abb9, the hotkey launcher pins the scale, while the installer first launch remains unpinned and there is no autostart scale override. Open #13910 proposes systemd autostart drop-ins for both 1Password desktop IDs, and #14954 proposes the installer flag. These are 1Password workarounds, not a fix for other Electron apps such as Typora. #8575 remains open, conflicts with quattro, and already links this issue.
This was a source and status review; I did not rerun applications or verify that current 1Password or Typora releases bundle the Chromium fix. Codex High checked this, with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. Both agreed on the source mechanism and the disposition; reviewer independence is not guaranteed. Opus also identified the correction to the earlier worker evidence. This remains open for the maintainer's decision on the Omarchy workarounds and confirmation in affected app releases.