Mac-like trackpad tuning for Omarchy on an Apple Silicon MacBook Pro
| -- Add these settings to ~/.config/hypr/input.lua on Omarchy. | |
| hl.config({ | |
| input = { | |
| touchpad = { | |
| natural_scroll = true, | |
| tap_to_click = true, | |
| clickfinger_behavior = true, | |
| scroll_factor = 0.2, | |
| }, | |
| }, | |
| -- Commit a workspace swipe after 25% travel. | |
| gestures = { | |
| workspace_swipe_cancel_ratio = 0.25, | |
| }, | |
| }) | |
| -- Apply custom acceleration only to the built-in MacBook trackpad. | |
| hl.device({ | |
| name = "apple-spi-trackpad", | |
| accel_profile = "custom 1.0 0.0 0.05 0.15 0.35 0.75 1.25", | |
| scroll_points = "1.0 0.0 0.02 0.07 0.2 0.6 1.0", | |
| }) | |
| -- Three-finger horizontal workspace swipe. | |
| hl.gesture({ | |
| fingers = 3, | |
| direction = "horizontal", | |
| action = "workspace", | |
| scale = 0.75, | |
| }) |
评论
?
参与讨论