From 7afd59149cf3d8cde4f95ebeb00e04c992802deb Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Sun, 28 May 2017 22:50:36 +0200 Subject: [PATCH] Add lur-command manpage This is copied from the Debian package. Signed-off-by: Stephen Kitt --- meson.build | 8 +++++++ tools/lur-command.man | 49 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 tools/lur-command.man diff --git a/meson.build b/meson.build index 47c74767..e129cf06 100644 --- a/meson.build +++ b/meson.build @@ -256,6 +256,14 @@ executable('lur-command', install : true, ) +man_lur_command = configure_file ( + input: 'tools/lur-command.man', + output: 'lur-command.1', + configuration: man_config, + install : true, + install_dir : join_paths(get_option('mandir'), 'man1') +) + #### hwdb #### udev_dir = get_option('udev-dir') if udev_dir == '' diff --git a/tools/lur-command.man b/tools/lur-command.man new file mode 100644 index 00000000..16d98048 --- /dev/null +++ b/tools/lur-command.man @@ -0,0 +1,49 @@ +.TH lur\-command 1 "@version@" lur\-command +.SH NAME +lur\-command \- list, pair and unpair Logitech Unifying devices +.SH SYNOPSIS +.B lur\-command find +.br +.B lur\-command list +.RI < device > +.br +.B lur\-command open +.RI < device > +.br +.B lur\-command close +.RI < device > +.br +.B lur\-command disconnect +.RI < index "> <" device > +.SH DESCRIPTION +.SS Common options +.TP +.BR \-h +displays a short help message. +.SS Listing receivers +.TP +.B find +lists all identified receivers on the system (scanning +.BI /dev/hidraw n +devices). +.SS Listing connected devices +.TP +.BR list " <" \fIdevice\fP > +lists the devices connected to the given receiver device. +.SS Pairing devices +.TP +.BR open " <" \fIdevice\fP > +opens the given receiver for pairing, for 30s. +.SS Closing a receiver +.TP +.BR close " <" \fIdevice\fP > +closes the given receiver, if it is currently open for pairing. +.SS Disconnecting a device +.TP +.BR disconnect " <" \fIindex\fP "> <" \fIdevice\fP > +disconnects the device matching the given index from the given +receiver. The index is as determined by the +.B list +command. +.SH SEE ALSO +.BR ratbag\-command (1)