Skip to content

Instantly share code, notes, and snippets.

@linktoming
Forked from imabuddha/50-system-apple.quirks
Created August 28, 2021 03:12
Show Gist options
  • Save linktoming/3b0f65ae6b31e73d92ef270ee9756efc to your computer and use it in GitHub Desktop.
Save linktoming/3b0f65ae6b31e73d92ef270ee9756efc to your computer and use it in GitHub Desktop.

Revisions

  1. @imabuddha imabuddha created this gist Dec 10, 2020.
    8 changes: 8 additions & 0 deletions 50-system-apple.quirks
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # add this to /usr/share/libinput/50-system-apple.quirks (create if doesn't exist)
    [Apple Magic Trackpad v2]
    MatchName=*Magic Trackpad 2
    AttrSizeHint=162x115
    AttrTouchSizeRange=20:10
    AttrPressureRange=2:0
    AttrPalmSizeThreshold=900
    AttrThumbSizeThreshold=700
    9 changes: 9 additions & 0 deletions 99-apple-magic-trackpad-2.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # add this to /usr/share/X11/xorg.conf.d/99-apple-magic-trackpad-2.conf (create if doesn't exist)
    Section "InputClass"
    Identifier "Magic Trackpad 2"
    MatchProduct "Magic Trackpad 2"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
    Option "NaturalScrolling" "true"
    Option "ClickMethod" "clickfinger"
    EndSection