Skip to content

Keep the screensaver wordmark across monitor scales - #9045

Closed
PyRo1121 wants to merge 1 commit into
omacom:quattrofrom
PyRo1121:fix/issue-9027
Closed

PyRo1121 wants to merge 1 commit into
omacom:quattrofrom
PyRo1121:fix/issue-9027

Conversation

@PyRo1121

Copy link
Copy Markdown
Contributor

Fixes #9027

The screensaver launchers hardcoded an 18pt font, but the wordmark needs 81 columns. On a 1080p/143-DPI panel, Omarchy's own omarchy_monitor_scale = "auto" resolves to scale 2, whose 960-column logical viewport fits only 66 columns — ttfx centre-cropped the art down to "MARCH".

Each terminal launch now sizes its font from the target monitor's scale (18 / scale, clamped to 6–18) via a new omarchy_screensaver_font_size helper in default/bash/fns/screensaver. The wordmark's physical size — and therefore its column budget — stays constant on every display: scale 1 keeps the shipped 18, scale 2 gets 9, and sub-unity scales cap at 18.

  • foot gets --font="JetBrainsMono Nerd Font:size=$font", Alacritty --option font.size=$font, and Ghostty/Kitty their existing flags with the computed value
  • per-monitor scales are honored (mixed-scale setups launch each terminal with its own size)

Tests:

  • bash test/shell.d/screensaver-font-size-test.sh
  • bash -n bin/omarchy-launch-screensaver default/bash/fns/screensaver
  • git diff --check

@mefelosc

mefelosc commented Sep 4, 2026 •

Copy link
Copy Markdown

Nice work on this! Could I ask you to consider portrait monitors too, please? The scale-only formula still crops there. Tested on a 1080p panel rotated to portrait at scale 1.25:

18 / 1.25 = 14 → ~77 columns for the 81-column wordmark, so it still crops (before shot: only "MARCH" visible).
hyprctl monitors -j reports unrotated dimensions, so with transform = 1/3 the logical width needs to swap w/h first: height / scale = 864px here, not width / scale.
Sizing from that rotation-aware logical width — something like floor(logical / 84 / 0.8), clamped to 8–18 — gives 12pt → ~90 columns here, verified fitting (after shot). It's general rather than portrait-specific: wide monitors still compute ≥18, so current behavior is unchanged there.

I could only test on foot + portrait, so please take the numbers with a grain of salt — would appreciate if someone could validate on the other terminals. Happy to test a revision on portrait hardware.

screensaver-portrait-before screensaver-portrait-after

@bjarneo

bjarneo commented Sep 21, 2026

Copy link
Copy Markdown
Member

Automated duplication check: this pull request looks similar to #7307, which covers the same screensaver font scaling. I keep that one open and close this one to consolidate review.

If you feel this is the wrong decision, please open the PR again with a note on the difference.

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.

Screensaver wordmark clipped horizontally at default monitor scale on 1080p displays

3 participants