]> git.mdlowis.com Git - proto/labwc.git/commitdiff
default-bindings.h: set combine="yes" for SnapToEdge keybinds
authortokyo4j <hrak1529@gmail.com>
Wed, 17 Sep 2025 07:25:32 +0000 (16:25 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Fri, 19 Sep 2025 07:23:23 +0000 (16:23 +0900)
docs/labwc-config.5.scd
docs/rc.xml.all
include/config/default-bindings.h

index a854d886f0bb8363e1ab0ddd97821754cf6b2a1b..7ddf2d5bd06bbb38a050f43bb3966294285c707e 100644 (file)
@@ -727,7 +727,7 @@ extending outward from the snapped edge.
   W-Return - lab-sensible-terminal
   A-F4 - close window
   W-a - toggle maximize
-  W-<arrow> - resize window to fill half the output
+  W-<arrow> - resize window to fill half or quarter of the output
   A-Space - show window menu
 ```
 
index a96993ab3b4071c778951b702fb7c63ec0c4ee17..12d0c761c86b1b2166d32af5fc0cf9f2c0ff4df2 100644 (file)
       <action name="ToggleMaximize" />
     </keybind>
     <keybind key="W-Left">
-      <action name="SnapToEdge" direction="left" />
+      <action name="SnapToEdge" direction="left" combine="yes" />
     </keybind>
     <keybind key="W-Right">
-      <action name="SnapToEdge" direction="right" />
+      <action name="SnapToEdge" direction="right" combine="yes" />
     </keybind>
     <keybind key="W-Up">
-      <action name="SnapToEdge" direction="up" />
+      <action name="SnapToEdge" direction="up" combine="yes" />
     </keybind>
     <keybind key="W-Down">
-      <action name="SnapToEdge" direction="down" />
+      <action name="SnapToEdge" direction="down" combine="yes" />
     </keybind>
     <keybind key="A-Space">
       <action name="ShowMenu" menu="client-menu" atCursor="no" />
index 08caeadeb7a94cf2090b05644611fc8a9fad7c38..9d42d2370698b7c054748da22badd0509eeb79cf 100644 (file)
@@ -35,6 +35,10 @@ static struct key_combos {
                        .name = "direction",
                        .value = "left",
                },
+               .attributes[1] = {
+                       .name = "combine",
+                       .value = "yes",
+               },
        }, {
                .binding = "W-Right",
                .action = "SnapToEdge",
@@ -42,6 +46,10 @@ static struct key_combos {
                        .name = "direction",
                        .value = "right",
                },
+               .attributes[1] = {
+                       .name = "combine",
+                       .value = "yes",
+               },
        }, {
                .binding = "W-Up",
                .action = "SnapToEdge",
@@ -49,6 +57,10 @@ static struct key_combos {
                        .name = "direction",
                        .value = "up",
                },
+               .attributes[1] = {
+                       .name = "combine",
+                       .value = "yes",
+               },
        }, {
                .binding = "W-Down",
                .action = "SnapToEdge",
@@ -56,6 +68,10 @@ static struct key_combos {
                        .name = "direction",
                        .value = "down",
                },
+               .attributes[1] = {
+                       .name = "combine",
+                       .value = "yes",
+               },
        }, {
                .binding = "A-Space",
                .action = "ShowMenu",