Repository navigation
Add default touchpad gestures - #16891
Conversation
Three fingers swipe between workspaces (empty ones included), pull down the AI console, open the Omarchy menu, and move the active window with Super held. Four fingers carry the active window to the neighbouring workspace or toggle fullscreen. Hyprland rejects a second gesture on the same fingers and direction, so omarchy_default_gestures = false turns them off, and a migration sets it for anyone who already has gestures of their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
[Medium impact] The PR appears safe to merge; both previous findings are addressed. SummaryAdds default touchpad gestures for workspaces, window movement, the AI console, the menu, and fullscreen.
Reviews (2) · Last reviewed commit: "Find gestures anywhere in the hypr confi..." · Reviewed by Greptile |
…gration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@dhh Great change! Been putting the three-finger swipe on every laptop I've installed Omarchy on, first-thing. Perfect mapping for workspace swap. Just one vote, but in my experience, a finger-tracked/direct-manipulation gesture animation here feels much better than a hard swap, given that you're using touch. hyprland supports this kind of 1:1 animation control for the workspace change: https://wiki.hypr.land/0.56.0/Configuring/Advanced-and-Cool/Gestures/ |
Omarchy's default gestures (omacom/omarchy#16891) send a three-finger swipe left to the previous workspace, on purpose. The owner wants the macOS direction, where the desktop follows the fingers. linux/input/k114s-mac-swipes adds a marked block (mac-swipes.lua) to ~/.config/hypr/input.lua, which loads after the defaults: it unsets the 3- and 4-finger left/right gestures and sets them reversed. Install, --check and --undo work like k114s-dcp-colour; install refuses while an unmarked line sets one of those gestures (Hyprland rejects duplicates). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e) (#155) * Input: Mac-style workspace swipes as a managed block (owner preference) Omarchy's default gestures (omacom/omarchy#16891) send a three-finger swipe left to the previous workspace, on purpose. The owner wants the macOS direction, where the desktop follows the fingers. linux/input/k114s-mac-swipes adds a marked block (mac-swipes.lua) to ~/.config/hypr/input.lua, which loads after the defaults: it unsets the 3- and 4-finger left/right gestures and sets them reversed. Install, --check and --undo work like k114s-dcp-colour; install refuses while an unmarked line sets one of those gestures (Hyprland rejects duplicates). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * k114s-mac-swipes: refuse unbalanced markers, find clashing gestures in any form, keep a symlinked input.lua a link Review of #155: - a begin line without its end line made strip() drop every line below it, and install or undo then wrote the truncated file; any unmatched or repeated marker now stops every action with nothing changed - the clash check needed fingers before direction on one line; it now reads each active hl.gesture call whole, in any field order and over several lines, and counts direction = "horizontal" too - mv replaced a symlinked input.lua with a plain file; the script now edits the link's target Each new test fails on the previous script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Turns on a set of touchpad gestures by default. Until now gestures were only commented-out examples.
r±1)special:qconsole)Horizontal swipes dispatch a workspace change when the swipe ends instead of using Hyprland's tracked
workspacegesture. Workspace switching isn't animated, and dragging the workspace under the fingers felt off next to that.Overriding
Hyprland rejects a second gesture on the same fingers and direction ("Gesture will be overshadowed by a previous gesture"), and the first one registered wins. Since the defaults load before the user's config, there are two ways out:
hl.gesture({ fingers = 3, direction = "up", action = "unset" })before binding a replacement (shown inconfig/hypr/input.luaand the manual).omarchy_default_gestures = falseinhyprland.luaturns them all off, likeomarchy_default_bindings.Migration
Anyone who already has an active
hl.gesture(in~/.config/hypr/*.lua(for example, the horizontal-workspace example the manual used to suggest) would start getting config errors. The migration insertsomarchy_default_gestures = falseaboverequire("default.hypr.omarchy")for those users only, so their gestures keep working as before. A blanketunsetblock wasn't an option: unsetting a gesture that isn't bound is itself a config error.Testing
hyprctl configerrors, and behaviour (unsetthen rebind, duplicate shadowing, unsetting a missing gesture) was checked there too.requireline, without a config, and a second time over its own result.test/shell.d/hyprland-default-config-test.shpasses.🤖 Generated with Claude Code