zsh: update completion to include latest debug-events options
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 4 Nov 2024 21:52:18 +0000 (07:52 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 5 Nov 2024 20:38:44 +0000 (06:38 +1000)
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1077>

completion/zsh/_libinput

index 10969e8c4365efdd1318fcb1b18c7be91713f62a..27aec92e09a522810d5d048676f284bdddc89e00 100644 (file)
@@ -50,12 +50,15 @@ __all_seats()
                '--apply-to=[Apply configuration options where the device name matches the pattern]:pattern' \
                '--disable-sendevents=[Disable send-events option for the devices matching the pattern]:pattern' \
                '--set-area=[Set the desired area as "x1/y1 x2/y2" (within [0.0, 1.0]) ]' \
+               '--set-calibration=[Set the first 6 elements of the 3x3 calibration matrix ("1.0 0.0 0.0 0.0 1.0 0.0")]' \
                '--set-click-method=[Set the desired click method]:click-method:(none clickfinger buttonareas)' \
                '--set-clickfinger-map=[Set button mapping for clickfinger]:tap-map:((  \
                        lrm\:2-fingers\ right-click\ /\ 3-fingers\ middle-click \
                        lmr\:2-fingers\ middle-click\ /\ 3-fingers\ right-click \
                ))' \
-               '--set-profile=[Set pointer acceleration profile]:accel-profile:(adaptive flat)' \
+               '--set-pressure-range=[Set the tablet tool pressure range (within range \[0.0, 1.0\])]' \
+               '--set-profile=[Set pointer acceleration profile]:accel-profile:(adaptive flat custom)' \
+               '--set-rotation-angle=[Set the rotation angle in degrees]' \
                '--set-scroll-button=[Set the button to the given button code]' \
                '--set-scroll-method=[Set the desired scroll method]:scroll-method:(none twofinger edge button)' \
                '--set-speed=[Set pointer acceleration speed (within range \[-1, 1\])]' \
@@ -63,6 +66,10 @@ __all_seats()
                        lrm\:2-fingers\ right-click\ /\ 3-fingers\ middle-click \
                        lmr\:2-fingers\ middle-click\ /\ 3-fingers\ right-click \
                ))' \
+               + '(custom pointer acceleration)' \
+               '--set-custom-points=[Set n points defining a custom acceleration function]' \
+               '--set-custom-step=[Set the distance along the x axis between the custom points]' \
+               '--set-custom-type=[Set the type of the acceleration function]:custom-type:(fallback motion scroll)' \
                + '(drag)' \
                '--enable-drag[Enable tap-and-drag]' \
                '--disable-drag[Disable tap-and-drag]' \