Repository navigation
Conversation
The per-terminal scroll_touchpad rules match on class, so windows Omarchy opens under its own app-ids (org.omarchy.*, TUI.*) missed them and fell back to the global touchpad scroll factor. Match those windows by the initial title their terminal opens them with, so each gets the speed of the terminal behind it, and add foot's org.codeberg.dnkl.foot app-id to the foot rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge. SummaryGives Omarchy terminal windows their terminal’s touchpad scroll speed.
Reviews (2) · Last reviewed commit: "Test that a partial title doesn't get a ..." · Reviewed by Greptile |
The scroll test's only negative case was a window whose class matches no rule, so it never checked the title half of the rule for Omarchy's own app-ids. Add an agent window titled football, which must keep the global touchpad speed: with the foot title loosened to a prefix, the other cases still pass and this one fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed at 42cd8c9 against Reproduced, then fixed. With foot, kitty and Ghostty each set as the default terminal, I opened windows the way Omarchy does: Tests. Second opinion. Codex Medium reviewed the diff at this head and found no defect in it. Independence is not guaranteed, because it can read this session's work. Its one finding is the case this description already lists as not covered: Related. #9049 also fixes #9008, by adding a rule in Waiting on the maintainer. |
|
Closing: 3ba58c6 on |
Problem
default/hypr/input.luasets a touchpad scroll speed per terminal, matched on the window class: 1.5 for Alacritty and kitty, 2.0 for foot, 0.2 for Ghostty. Omarchy opens many terminal windows under app-ids of its own:org.omarchy.agent,org.omarchy.btop,org.omarchy.nvimand everything elseomarchy-launch-tuinames,org.omarchy.terminalfrom the menu, andTUI.float/TUI.tilefromomarchy-tui-install. foot can also come up asorg.codeberg.dnkl.foot.default/hypr/apps/terminals.luatags all of these as terminals, but none of them match a scroll rule. They fall back to the globalinput:touchpad:scroll_factor, because a window'sscroll_touchpadreplaces that factor instead of multiplying it. On my machine, an agent window under foot scrolled at 0.25, the global factor, instead of 2.0.As #9008 notes, one rule on the
terminaltag can't fix this: the speeds are per terminal, andorg.omarchy.agentdoesn't say which terminal is behind it.Change
The terminal does say which one it is, in the title it opens the window with. Its default title is
foot,kitty,AlacrittyorGhostty, and Omarchy's own configs for these terminals don't settitle. Hyprland keeps that as the window's initial title, whichomarchy-hyprland-focus-appalready relies on to find agent windows.So each terminal's speed now goes to two rules: the existing class rule, and a rule for Omarchy's own terminal app-ids (
org.omarchy.*,TUI.*) whose initial title is that terminal's. A small local helper applies both, so each speed still appears once.org.codeberg.dnkl.footjoins the foot rule.Compared with #9049, this is config only. It survives
hyprctl reload, adds no rule per launch, reaches the windows that don't go throughomarchy-launch-tui(TUI.*,org.omarchy.terminalfrom the menu), and keeps the per-terminal values in one table.Scope
These windows now scroll exactly like a plain window of the same terminal running the same program. #9049 discussed whether fullscreen TUIs on foot's alternate screen need a different speed. That question applies to plain terminal windows too and is separate, so this PR leaves it alone.
Not covered: windows opened with an explicit title.
omarchy-launch-floating-terminal-with-presentationopens the installer and setup windows asorg.omarchy.terminalwith--title=Omarchy. Those keep the global factor, as they do today.Verification
initial_title = "foot"withhyprctl eval, then opened foot windows under a test app-id.hyprctl getpropshowed the rule applied to the window titledfootand not to ones opened with--title=Omarchyor--title=football, so the title is matched in full.appname, Alacritty'sDEFAULT_NAME, and Ghostty's"Ghostty"fallback when nothing has set a title.test/shell.d/hyprland-focus-app-test.shalready usesinitialTitle: "kitty"for an agent window.test/shell.d/hyprland-terminal-scroll-test.shloadsinput.luawith a stubhl, then resolves the speed for each window the way Hyprland does: the pattern must match the whole value, and the last matching rule wins. It fails onquattroand passes here../test/all, run without a compositor so the compositor-gated tests skip.test/clipasses. Intest/shell, 5 of 455 files fail, and none of them involve this change:default-apps,elsewhen-migrationandi18nfail the same way on a cleanquattro. Fori18n,da/menu.jsonstill hassystem.reboot-boot-menuafter Remove the Reboot to Boot Menu menu item #15795.agent-account-copyandhyprland-startup-cursorfailed only in the parallel run and pass on their own.agent-account-copyrefused to run because it found the Claude session that was running the suite.Fixes #9008
🤖 Generated with Claude Code