diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-03-16 11:23:33 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-03-16 13:04:50 +1000 |
commit | 6ed3a0b079b241cdecd4ad12f3e9d78e32752e03 (patch) | |
tree | 4263719459978711c40d2541046e2df2ea5d4679 /tools/libinput-record.man | |
parent | c48e5cf9a65207609e56c33ffb313b15a8e1cd5d (diff) | |
download | libinput-6ed3a0b079b241cdecd4ad12f3e9d78e32752e03.tar.gz |
tools: record: allow for an output file without --o
libinput record touchpad.yml /dev/input/eventX
or just
libinput record touchpad.yml
are simpler invocations and since we're quite limited in what we can record
(i.e. only device files) we can just check the argument list to figure out
whether there is something to record to.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/libinput-record.man')
-rw-r--r-- | tools/libinput-record.man | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/libinput-record.man b/tools/libinput-record.man index a537d15f..e85eb10d 100644 --- a/tools/libinput-record.man +++ b/tools/libinput-record.man @@ -10,7 +10,17 @@ prints them in a format that can later be replayed with the \fBlibinput replay(1)\fR tool. This tool needs to run as root to read from the device. .PP The output of this tool is YAML, see \fBFILE FORMAT\fR for more details. -By default it prints to stdout unless the \fB-o\fR option is given. +By default it prints to stdout unless an output file is provided. For +example, these are valid invocations: + +.B libinput record /dev/input/event3 touchpad.yml + +.B libinput record recording.yml + +.B libinput record --all all-devices.yml + +.B libinput record /dev/input/event3 /dev/input/event4 tp-and-keyboard.yml + .PP The events recorded are independent of libinput itself, updating or removing libinput will not change the event stream. @@ -44,6 +54,9 @@ greater than 0. .PD 1 Specifies the output file to use. If \fB\-\-autorestart\fR is given, the filename is used as prefix only. +Where \-\-output-file is not given and the first \fBor\fR last argument is +not an input device, the first \fBor\fR last argument will be the output +file. .TP 8 .B \-\-show\-keycodes Show keycodes as-is in the recording. By default, common keys are obfuscated |