Skip to content

Offer refresh rates in the display panel - #17175

Merged
dhh merged 2 commits into
quattrofrom
monitor-refresh-rate
Oct 31, 2026
Merged

dhh merged 2 commits into
quattrofrom
monitor-refresh-rate

Conversation

@dhh

@dhh dhh commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

When a display's current resolution offers at least two rates of 60Hz or more, and the fastest is above 60, the display panel shows a Refresh rate row below Resolution: one pill per whole rate (60 / 120 / 144), the current one highlighted, with the current rate on the right. Picking one switches to that rate at the same resolution through omarchy-hyprland-monitor-resolution, and the row joins the panel's keyboard navigation.

  • omarchy-monitor-state now reports each display's refreshRate.
  • Model.js refreshOptions collapses near-duplicates (59.95 and 60) into one pill and applies the display's exact rate (143.98 for "144").
  • Displays that only do 60Hz don't show the row.

A mock-up screenshot, made with a stand-in state offering 60/120/144Hz at 2560x1600 (the dev laptop panel is 60Hz only), is available on request.

Tests: monitor-test.sh (two new refreshOptions cases), monitor-state-test.sh, i18n-test.sh. Codex review found no issues. Not yet tried on a real high-refresh monitor.

🤖 Generated with Claude Code

@greptile-apps

greptile-apps Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Adds refresh-rate choices to the display panel at the current resolution.

  • The monitor panel lets people choose refresh rates at the current resolution.

Reviewed the code and related monitor commands. No actionable issues were found. Tests and the running UI were not exercised during this review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Read monitor state] --> B[Group rates at current resolution]
  B --> C[Show refresh-rate pills]
  C --> D[Choose a rate]
  D --> E[Check advertised mode]
  E --> F[Save and apply mode]
  F --> A
Loading

Reviews (1) · Last reviewed commit: "Offer a display's refresh rates below it..." · Reviewed by Greptile

@dhh
dhh merged commit b4b7ad9 into quattro Oct 31, 2026
3 checks passed
@dhh
dhh deleted the monitor-refresh-rate branch October 31, 2026 19:08
omarchybot added a commit to ekollof/omarchy that referenced this pull request Nov 1, 2026
The display panel was rewritten on quattro (omacom#17159, omacom#17170, omacom#17175) with a taller cap and its full-card ScrollView kept, so it keeps scrollOverflow: false beside the new contentHeight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@emirb emirb added this to the 4.6.0 milestone Nov 5, 2026
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