Agent windows (org.omarchy.agent) miss the terminal scroll_touchpad rule, making touchpad scrolling ~10x slower
Agent windows (org.omarchy.agent) are excluded from the terminal
scroll_touchpad rule, making touchpad scrolling ~10x slower than in a
regular terminal window.
What happens
default/hypr/input.lua speeds up touchpad scrolling per terminal class:
-- default/hypr/input.lua:82
o.window("(Alacritty|kitty|foot)", { scroll_touchpad = 1.5 })
o.window("com.mitchellh.ghostty", { scroll_touchpad = 0.2 })
But omarchy-agent deliberately gives every agent window a fixed app-id:
# /usr/bin/omarchy-agent:111
# A fixed app-id rather than the default org.omarchy.<binary>, so every agent
# window shares one class for window rules and themes to single out.
exec omarchy-launch-tui --app-id=org.omarchy.agent "${command[@]}"
org.omarchy.agent does not match (Alacritty|kitty|foot), so agent windows
get no scroll_touchpad rule at all and fall back to 1.0.
A second factor compounds it. foot only applies its own
scrollback.multiplier (7.0 in Omarchy's config/foot/foot.ini) when it
scrolls its own scrollback. Once the client enables the alternate screen with
mouse reporting, the multiplier is skipped:
/* foot 1.27.0, input.c:3368 */
static double
mouse_scroll_multiplier(const struct terminal *term, const struct seat *seat)
{
return (term->grid == &term->normal ||
(term_mouse_grabbed(term, seat) && term->alt_scrolling))
? term->conf->scrollback.multiplier
: 1.0;
}
Agents run a fullscreen TUI, so that is always the case for them.
Combined effect on a touchpad:
| window | window rule | foot multiplier | effective |
|---|---|---|---|
regular foot window |
1.5 | 7.0 | 10.5x |
org.omarchy.agent |
1.0 (no rule) | 1.0 | 1x |
Steps to reproduce
- Default terminal set to foot, on a laptop touchpad.
- Open a regular terminal and run any pager or TUI that scrolls its scrollback. Two-finger scroll moves at a normal pace.
Super + Shift + Ctrl + Ato open an agent window, let it produce enough output to scroll, and two-finger scroll. It crawls.
Expected
Touchpad scrolling in an agent window should feel the same as in a regular terminal window.
Workaround
-- ~/.config/hypr/input.lua
o.window("org.omarchy.agent", { scroll_touchpad = 10.0 })
10.0 is the maximum Hyprland accepts for scrolltouchpad; 10.5 is rejected
with value 10.50 is more than the maximum of 10.00.
Note on a proper fix
Simply adding org.omarchy.agent to the existing rule would not be enough —
1.5 only works for windows that also get foot's 7.0 scrollback multiplier,
which a fullscreen TUI never does. Agent windows need roughly the product of
the two (~10).
There is also a wrinkle: because omarchy-agent pins one app-id for every
terminal, the class no longer says which terminal is running, while the
existing rules are deliberately per-terminal (0.2 for ghostty vs 1.5 for
foot/alacritty/kitty). A correct fix probably has to pick the value in
omarchy-agent / omarchy-launch-tui where the terminal is known, rather
than in a class-based window rule.
System
- Omarchy 4.0.1-2 (
omarchyandomarchy-settingsboth 4.0.1-2) - Hyprland on Arch (aarch64, Apple Silicon / Asahi)
- Terminal: foot 1.27.0
- Agent: Claude Code,
tui: fullscreen
Confirming this on x86_64 as well, so it is not Asahi-specific.
- Omarchy 4.0.1-1
- Hyprland v0.56.2
- foot 1.27.0
- Intel i7-8550U / UHD 620
- Agent: Claude Code, fullscreen TUI
hyprctl clients -j shows the two classes side by side, which makes the rule miss easy to see:
class=foot title=OpenCode
class=org.omarchy.agent title=<claude session>
Worth adding: the window-rule miss alone is smaller than it looks, because Omarchy also sets scroll_factor = 0.4 globally. At the Hyprland layer a terminal ends up at 0.4 * 1.5 = 0.6 and an agent window at 0.4 * 1.0 = 0.4 — only a ~33% gap. Nearly all of the perceived slowness is the second factor in your report, foot skipping scrollback.multiplier in the alternate screen. I initially fixed only the first half with
o.window("org.omarchy.agent", { scroll_touchpad = 1.5 })
and it was barely distinguishable from no fix at all. scroll_touchpad = 10.0 is what actually restores parity, matching your workaround.
That seems worth keeping in mind for the fix: anything that only widens the (Alacritty|kitty|foot) pattern will look like it addresses this and will not.
Reproduced on Omarchy 4.0.2-1, Hyprland 0.56.2, foot, ThinkPad X1 Carbon (x86_64). Same miss with Grok Build: windows are foot --app-id=org.omarchy.agent, so hyprctl clients shows class=org.omarchy.agent next to a normal class=foot terminal.
Agreed that only adding org.omarchy.agent at scroll_touchpad = 1.5 is not enough. The TUI is on the alternate screen, so foot never applies scrollback.multiplier = 7.0. scroll_touchpad = 10 (Hyprland’s max) is what actually restores parity here.
Workaround in ~/.config/hypr/input.lua:
o.window("org.omarchy.agent", { scroll_touchpad = 10 })
Hit the same thing on org.omarchy.terminal (the first-run agent window), so it
does not look specific to org.omarchy.agent.
One option that might cover both: the rule in default/hypr/input.lua matches on
class, but default/hypr/apps/terminals.lua already tags every Omarchy terminal
app-id as terminal. Matching that tag instead would pick up the app-ids and any
future ones without listing them:
o.window({ tag = "terminal" }, { scroll_touchpad = 1.5 })
Running it locally and it fixes the window for me, though I have not checked what
else carries the tag, and the ghostty rule at 0.2 would need to keep winning.
One detail that may matter for the numbers above: foot's multiplier=7.0 is a
[scrollback] setting, so it does not apply while a full-screen TUI is on the
alternate screen — there, scroll events become up/down keys. For those windows
scroll_touchpad is the only multiplier in play, which may be why the gap feels
larger than 1.5x.
Happy to be wrong on any of this, and to test a different fix.
Confirmed on current quattro (be052339d), and the miss is wider than agent windows.
What I checked. On a worker built from the Omarchy 4.0.4 ISO (Hyprland 0.56.2, foot 1.28.0), I installed quattro's default/hypr/input.lua, which since #9793 gives foot its own scroll_touchpad = 2.0. Then I opened a plain foot window and a window launched the way omarchy-agent does it, omarchy-launch-tui --app-id=org.omarchy.agent. hyprctl getprop reports scroll_touchpad 2 for the foot window and 0.4 for the agent window. That 0.4 is the global touchpad scroll_factor, so no rule applied. Both windows carry the terminal tag.
Why. The three rules in default/hypr/input.lua:78-81 match on class, and Hyprland matches a class in full. Every window Omarchy launches under its own app-id misses all three: org.omarchy.agent, org.omarchy.terminal, anything omarchy-launch-tui names org.omarchy.<command> (terminal editors included), and TUI.float/TUI.tile.
Why this has no one-line fix. The class no longer says which terminal is running, and the values are deliberately per terminal: 0.2 for ghostty, 1.5 for Alacritty and kitty, 2.0 for foot. A rule on the terminal tag, as suggested above, would cover every one of these windows, but it has to pick one number for all terminals. Whatever suits foot would make the same windows far too fast under ghostty. Choosing the value where the terminal is known (in omarchy-launch-tui, say) avoids that, but it is a change to how those windows are launched. Either way, how fast these windows should scroll is a tuning call. I have not opened a pull request for that reason.
What is not established. I measured the compositor side only. This shows a 2x gap against foot at the Hyprland layer, not the ~10x in the title. The claim that foot's scrollback.multiplier never applies on the alternate screen is broader than foot's own release notes, which describe it applying in alternate-scroll mode. How much faster an agent window needs to be than a plain terminal depends on how the TUI handles wheel events, and I did not measure that.
The second opinion was Codex at medium effort. It agreed with the mechanism and that no design-free fix exists, and it found the wider set of affected classes listed above. Independence is not guaranteed: it read the same diagnosis I had written down.
Next: this is waiting on the maintainer to decide where the per-terminal value for these windows should come from. Until then, the workaround in the report (o.window("org.omarchy.agent", { scroll_touchpad = ... }) in ~/.config/hypr/input.lua) works.