Skip to content

Add --no-gtk option to display text size command - #8825

Open
pazthor wants to merge 2 commits into
omacom:quattrofrom
pazthor:no-gtk-text-size
Open

pazthor wants to merge 2 commits into
omacom:quattrofrom
pazthor:no-gtk-text-size

Conversation

@pazthor

@pazthor pazthor commented Aug 28, 2026 •

Copy link
Copy Markdown

Summary

  • omarchy display text size <size> scales the shell base-size, GTK text-scaling-factor, and terminal font size together — including from the status-bar slider.
  • Some fixed-height GTK/Electron dialogs (e.g. the 1Password SSH approval prompt) clip their content once the GTK factor grows past 1.0, and they never appear in hyprctl clients, so window rules can't work around it. This is reproducible today by dragging the status-bar text-size slider up and then triggering that prompt.
  • Adds an opt-in --no-gtk flag (alias --shell-terminal-only) to omarchy-display-text-size, plus an explicit --gtk to restore the scale-GTK-too behavior for CLI callers who want it.
  • The status-bar panel (Panel.qml) now passes --no-gtk by default, so the slider — the primary way most users change text size — stops triggering the clipping bug without any opt-in required. CLI callers who invoke omarchy-display-text-size directly (scripts, hardware profiles like install/user/hardware/dell/xps13-text-scaling.sh) keep the previous scale-everything behavior unless they pass --no-gtk themselves.

Test plan

  • ./test/cli passes (116/116)
  • omarchy-display-text-size 16 --no-gtk sets shell base-size and terminal font size without touching text-scaling-factor
  • omarchy-display-text-size 16 (no flag) still scales all three, unchanged from current behavior
  • omarchy-display-text-size reset --no-gtk resets shell/terminal only
  • Manual: drag the status-bar text-size slider, open the 1Password SSH approval prompt, confirm it no longer clips

omarchy display text size currently scales the shell base-size, GTK
text-scaling-factor, and terminal font size together. Some fixed-height
GTK/Electron dialogs (e.g. the 1Password SSH approval prompt) clip their
content once the GTK factor grows past 1.0, and they never show up in
hyprctl clients so window rules can't work around it.

Add an opt-in --no-gtk (alias --shell-terminal-only) flag that sets the
shell and terminal sizes but leaves GTK text-scaling-factor untouched,
plus a --gtk flag to make the default explicit. Default behavior is
unchanged for existing callers.
Copilot AI balanced review requested due to automatic review settings August 28, 2026 22:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

The status-bar text-size slider drives the same 1Password-SSH-prompt
clipping bug the CLI fix addresses, and it's the primary way most
users change text size. Pass --no-gtk from the panel so the slider
gets the same protection by default, not just the CLI opt-in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants