diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-07-25 14:32:56 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-01-22 10:24:49 +1000 |
commit | 988488127cdf49b47cd075a698c78f25ee193467 (patch) | |
tree | 202f211647921277600fa3b3665da89044c0978f | |
parent | ed8c0865a2c1ec470b7c179a2907edb37bbad3a6 (diff) |
man: document an example for a set-prop call
Because it's 99% of the use-cases people use libinput for these days.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | man/xinput.man | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/man/xinput.man b/man/xinput.man index 87be8c7..b89fb01 100644 --- a/man/xinput.man +++ b/man/xinput.man @@ -87,7 +87,7 @@ instead. .B --set\-prop [\-\-type=\fIatom|float|int\fP] [\-\-format=\fI8|16|32\fP] \fIdevice\fP \fIproperty\fP \fIvalue\fP [...] Set the property to the given value(s). If not specified, the format and type of the property are left as-is. The arguments are interpreted according to the -property type. +property type. See Section \fICHANGING PROPERTIES\fP. .PP .TP 8 .B --watch-props \fIdevice\fP @@ -171,6 +171,13 @@ device. .PP \fIproperty\fP can be the property as a string or the Atom value. .PP +.SH "CHANGING PROPERTIES" +When xinput should modify an existing driver property value, it is +sufficient to provide the device name and property name as string, followed +by the new value(s) of the property. For example: +.IP +\fBxinput set-prop "my device" "my prop" 1 2 3\fB + .SH "SEE ALSO" X(__miscmansuffix__), xset(__appmansuffix__), xrandr(__appmansuffix__) .SH COPYRIGHT |