aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-12 09:20:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-12 09:20:05 +0000
commit45384839f0e9627cd5b376b045e11c14277d40d0 (patch)
treee727a5dbd8d984c121113f665f5bf815104c062c /doc
parentconfig: 'invalid key' is always an error, not a warning (diff)
config/input: implement mouse bindings
* New config section, "mouse-bindings", where bindings are defined on the form "action=BTN_<name> * pointer_button() handler now scans the bindings list instead of hardcoding primary-paste to BTN_MIDDLE. * The implementation handles single- double- and triple clicks in the bindings, but there is currently no way to define anything but a single-click binding in the configuration.
Diffstat (limited to 'doc')
-rw-r--r--doc/foot.5.scd12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/foot.5.scd b/doc/foot.5.scd
index 5c8becdf..dbbcc52d 100644
--- a/doc/foot.5.scd
+++ b/doc/foot.5.scd
@@ -203,6 +203,18 @@ Note that _Alt_ is usually called *Mod1*.
*fullscreen*
Toggles the fullscreen state. Default: _not bound_.
+# SECTION: mouse-bindings
+
+This section lets you override the default mouse bindings.
+
+The general format is *action*=*BTN\_<name>*, where *BTN\_<name>* is
+the name of the event code (e.g. *BTN\_LEFT*, *BTN\_RIGHT*). You can
+find the event names using *libinput debug-events*.
+
+*primary-paste*
+ Pastes from the _primary selection_. Default: _BTN_MIDDLE_.
+
+
# FONT FORMAT
The font is specified in FontConfig syntax. That is, a colon-separated