Unix/Arch Linux

i3 + arch linux, 애플 매직 트랙패드 태핑 되게하기

ForceCore 2024. 7. 23. 21:45

https://unix.stackexchange.com/questions/337008/activate-tap-to-click-on-touchpad

 

Activate tap to click on touchpad?

I am using Debian 8.6 LXDE on a Powerbook G4 15" 1.67GHz and would like to enable tap to click on the touchpad. It is already double scrolling but tap to click would help to save the ageing mouse b...

unix.stackexchange.com

 

xorg-input 패키지 설치 필요.

 

1. xinput으로 device 목록을 본다.

device명으론 Apple Inc. Magic Trackpad 2로 보였다. 이를 명령어에 쓰려면 따옴표나 작은 따옴표를 써야됨.

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Compx 2.4G Wireless Receiver              id=13   [slave  pointer  (2)]
⎜   ↳ Compx 2.4G Wireless Receiver Keyboard     id=14   [slave  pointer  (2)]
⎜   ↳ ELAN1203:00 04F3:307A Mouse               id=15   [slave  pointer  (2)]
⎜   ↳ ELAN1203:00 04F3:307A Touchpad            id=16   [slave  pointer  (2)]
⎜   ↳ Apple Inc. Magic Trackpad 2               id=20   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Asus Wireless Radio Control               id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Video Bus                                 id=9    [slave  keyboard (3)]
    ↳ Power Button                              id=10   [slave  keyboard (3)]
    ↳ Sleep Button                              id=11   [slave  keyboard (3)]
    ↳ Chicony PFU-65 USB Keyboard               id=12   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=17   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=18   [slave  keyboard (3)]
    ↳ Compx 2.4G Wireless Receiver Keyboard     id=19   [slave  keyboard (3)]

 

2. 무슨 플래그를 지원하는지 목록을 본다.

 xinput list-props "Apple Inc. Magic Trackpad 2"

$ xinput list-props "Apple Inc. Magic Trackpad 2"
Device 'Apple Inc. Magic Trackpad 2':
        Device Enabled (189):   1
        Coordinate Transformation Matrix (191): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Tapping Enabled (346): 0
        libinput Tapping Enabled Default (347): 0
        libinput Tapping Drag Enabled (348):    1
        libinput Tapping Drag Enabled Default (349):    1
        libinput Tapping Drag Lock Enabled (350):       0
        libinput Tapping Drag Lock Enabled Default (351):       0
        libinput Tapping Button Mapping Enabled (352):  1, 0
        libinput Tapping Button Mapping Default (353):  1, 0
        libinput Natural Scrolling Enabled (317):       1
        libinput Natural Scrolling Enabled Default (318):       1
        libinput Scroll Methods Available (319):        1, 1, 0
        libinput Scroll Method Enabled (320):   1, 0, 0
        libinput Scroll Method Enabled Default (321):   1, 0, 0
        libinput Click Methods Available (632): 1, 1
        libinput Click Method Enabled (633):    0, 1
        libinput Click Method Enabled Default (634):    0, 1
        libinput Middle Emulation Enabled (326):        0
        libinput Middle Emulation Enabled Default (327):        0
        libinput Accel Speed (328):     0.000000
        libinput Accel Speed Default (329):     0.000000
        libinput Accel Profiles Available (330):        1, 1, 1
        libinput Accel Profile Enabled (331):   1, 0, 0
        libinput Accel Profile Enabled Default (332):   1, 0, 0
        libinput Accel Custom Fallback Points (333):    <no items>
        libinput Accel Custom Fallback Step (334):      0.000000
        libinput Accel Custom Motion Points (335):      <no items>
        libinput Accel Custom Motion Step (336):        0.000000
        libinput Accel Custom Scroll Points (337):      <no items>
        libinput Accel Custom Scroll Step (338):        0.000000
        libinput Left Handed Enabled (339):     0
        libinput Left Handed Enabled Default (340):     0
        libinput Send Events Modes Available (302):     1, 0
        libinput Send Events Mode Enabled (303):        0, 0
        libinput Send Events Mode Enabled Default (304):        0, 0
        Device Node (305):      "/dev/input/event25"
        Device Product ID (306):        76, 613
        libinput Drag Lock Buttons (341):       <no items>
        libinput Horizontal Scroll Enabled (342):       1
        libinput Scrolling Pixel Distance (343):        15
        libinput Scrolling Pixel Distance Default (344):        15
        libinput High Resolution Wheel Scroll Enabled (345):    1

 

3. 마지막으로 플래그를 켜준다.
'xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Tapping Enabled' 1

 

4. 작동되는 것이 확인되었으면 .config/i3/config 에다가 넣자.

exec --no-startup-id xinput set-prop 'Apple Inc. Magic Trackpad 2' 'libinput Tapping Enabled' 1

 

P.S 키보드 반복속도 조절

exec --no-startup-id xset r rate 200 25