Commit 1547e5b5 authored by Peter Hutterer's avatar Peter Hutterer

completion: add libinput analyze to zsh completions

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent 8ed23424
......@@ -9,6 +9,7 @@
"debug-gui:Show a GUI to visualize libinput's events"
"debug-tablet:Show tablet axis and button values"
"measure:Measure various properties of devices"
"analyze:Analyze device data"
"record:Record the events from a device"
"replay:Replay the events from a device"
......@@ -162,6 +163,33 @@ __all_seats()
':device:_files -W /dev/input/ -P /dev/input/'
(( $+functions[_libinput_analyze] )) || _libinput_analyze()
local curcontext=$curcontext state line ret=1
local features
"per-slot-delta:analyze relative movement per touch per slot"
_arguments -C \
'--help[Print help and exit]' \
':feature:->feature' \
'*:: :->option-or-argument'
case $state in
_describe -t features 'feature' features
if ! _call_function ret _libinput_analyze_$words[1]; then
_message "unknown feature: $words[1]"
return ret
(( $+functions[_libinput_record] )) || _libinput_record()
_arguments \
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment