From 446fbc28b15b010980974ba2eeb97e610e4e5d3a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 7 Sep 2026 19:56:18 +0200 Subject: [PATCH] Start 1Password at a fixed device scale factor (#10673) 1Password reads the display scale itself, the way Electron apps do, so on a scaled monitor it comes up oversized next to every other window. Pin it with --force-device-scale-factor=1 and let the compositor scale it. The app menu is covered by the packaged .desktop, which we build ourselves in omarchy-pkgs. This is the other route in: the hotkey runs the binary directly and never reads that file. Claude-Session: https://claude.ai/code/session_01JB9phxP56gnP7qSidkkUJE Co-authored-by: Claude Opus 5 (1M context) --- bin/omarchy-launch-1password | 5 ++++- test/shell.d/launch-1password-test.sh | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-launch-1password b/bin/omarchy-launch-1password index d50da0b2..61889fd9 100755 --- a/bin/omarchy-launch-1password +++ b/bin/omarchy-launch-1password @@ -4,8 +4,11 @@ set -e +# 1Password reads the display scale itself, the way Electron apps do, and comes +# up oversized next to every other window on a scaled monitor. The packaged +# .desktop pins it too; this covers the hotkey, which runs the binary directly. if omarchy-cmd-present 1password; then - exec setsid uwsm-app -- 1password + exec setsid uwsm-app -- 1password --force-device-scale-factor=1 else exec omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password fi diff --git a/test/shell.d/launch-1password-test.sh b/test/shell.d/launch-1password-test.sh index c9790d2f..a1b64624 100755 --- a/test/shell.d/launch-1password-test.sh +++ b/test/shell.d/launch-1password-test.sh @@ -31,8 +31,9 @@ chmod +x "$mock_bin"/* launch_log="$test_tmp/launch-log" PATH="$mock_bin:$PATH" OMARCHY_TEST_INSTALLED=true OMARCHY_TEST_LOG="$launch_log" \ bash "$ROOT/bin/omarchy-launch-1password" -grep -Fxq 'launch:-- 1password' "$launch_log" || fail "1Password launcher starts the installed app" -pass "1Password launcher starts the installed app" +grep -Fxq 'launch:-- 1password --force-device-scale-factor=1' "$launch_log" || + fail "1Password launcher starts the installed app at a fixed scale factor" +pass "1Password launcher starts the installed app at a fixed scale factor" PATH="$mock_bin:$PATH" OMARCHY_TEST_INSTALLED=false OMARCHY_TEST_LOG="$launch_log" \ bash "$ROOT/bin/omarchy-launch-1password"