macbook: disable touchpad while typing

The bcm5974 trackpad is classified as a mouse by Hyprland, not a
touchpad, so the global touchpad DWT setting had no effect. Use a
per-device config block to apply disable_while_typing directly to
the bcm5974.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-18 17:11:52 +01:00
parent 28bac0dd46
commit dc7845a7b9

View file

@ -146,6 +146,14 @@ in
tap_to_click = true; tap_to_click = true;
tap_button_map = "lrm"; tap_button_map = "lrm";
natural_scroll = true; natural_scroll = true;
};
};
device = lib.optionalAttrs isMacbook {
"bcm5974" = {
sensitivity = 0;
accel_profile = "flat";
natural_scroll = true;
disable_while_typing = true; disable_while_typing = true;
}; };
}; };