]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labwc-config(5): add mousebind direction example
authorJohan Malm <jgm323@gmail.com>
Fri, 18 Apr 2025 13:39:46 +0000 (14:39 +0100)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Tue, 22 Apr 2025 19:07:11 +0000 (04:07 +0900)
Helped-by: @Consolatis
Related-to: #2677
docs/labwc-config.5.scd

index 258eaa038b861629b746e6eee280392d88ea9025..13911e4dfb3d1162a7a27faa9e9c8aed5b9860fd 100644 (file)
@@ -760,7 +760,11 @@ extending outward from the snapped edge.
        Mouse buttons and directions can be combined with modifier-keys
        (shift (S), super/logo (W), control (C), alt (A), meta (M) and
        hyper (H)), for example:
-       <mousebind button="A-Right" action="Press">
+
+```
+<mousebind button="A-Right" action="Press">...
+<mousebind direction="W-Up" action="Scroll">...
+```
 
        Supported mouse *actions* include:
        - Press: Pressing the specified button down in the context.
@@ -770,6 +774,25 @@ extending outward from the snapped edge.
        - Drag: Pressing the button within the context, then moving the cursor.
        - Scroll: Scrolling in specified *direction* in the context.
 
+       Example:
+
+```
+<?xml version="1.0"?>
+<labwc_config>
+<mouse>
+  <default />
+  <context name="Frame">
+    <mousebind direction="W-S-Up" action="Scroll">
+      <action name="ResizeRelative" left="10%" right="10%" top="10%" bottom="10%" />
+    </mousebind>
+    <mousebind button="W-Left" action="Drag">
+      <action name="Move" />
+    </mousebind>
+  </context>
+</mouse>
+</labwc_config>
+```
+
 *<mouse><default />*
        Load default mousebinds. This is an addition to the openbox
        specification and provides a way to keep config files simpler whilst