diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-11-19 14:48:54 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2019-11-19 14:48:54 +1000 |
commit | 61ce80c5b12e516e7cc281c2b24051d55728a184 (patch) | |
tree | f8469601d33e11a4d77ba83e8b39c3c1e2643404 | |
parent | f87a6203ee4ce873e2c4197e861a59699cf5afe2 (diff) |
completion: add the new libinput debug-tablet to the zsh completion files
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | completion/zsh/_libinput | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/completion/zsh/_libinput b/completion/zsh/_libinput index f3ed06fc..0bd9021f 100644 --- a/completion/zsh/_libinput +++ b/completion/zsh/_libinput @@ -7,6 +7,7 @@ "list-devices:List all devices recognized by libinput" "debug-events:Print all events as seen by libinput" "debug-gui:Show a GUI to visualize libinput's events" + "debug-tablet:Show tablet axis and button values" "measure:Measure various properties of devices" "record:Record the events from a device" "replay:Replay the events from a device" @@ -89,6 +90,15 @@ __all_seats() '--udev=[Listen for notifications on the given seat]:seat:_libinput_all_seats' } +(( $+functions[_libinput_debug-tablet] )) || _libinput_debug-tablet() +{ + _arguments \ + '--help[Show debug-tablet help and exit]' \ + '--device=[Use the given device with the path backend]:device:_files -W /dev/input/ -P /dev/input/' \ + '--udev=[Use the first tablet device on the given seat]:seat:_libinput_all_seats' +} + + (( $+functions[_libinput_measure] )) || _libinput_measure() { local curcontext=$curcontext state line ret=1 |