]> git.mdlowis.com Git - proto/labwc.git/commitdiff
labwc-actions(5): add example for ShowMenu with wtype
authorJohan Malm <jgm323@gmail.com>
Wed, 21 May 2025 05:33:02 +0000 (06:33 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 21 May 2025 10:44:21 +0000 (12:44 +0200)
Related-to: #2726
docs/labwc-actions.5.scd

index 93e5fa828357afe7c0f384acaaf63bf1208e36a1..a3c6c6d113bb49ef6b2003806e6c1764e96d1810 100644 (file)
@@ -159,6 +159,21 @@ Actions are used in menus and keyboard/mouse bindings.
        window and monitor for positive values, and to the right/bottom edge
        for negative values.
 
+       The example below demonstrates how the 'root-menu' can be opened from a
+       bottom aligned panel using the command `wtype -M logo -k Space`:
+
+```
+<keybind key="W-Space">
+  <action name="ShowMenu">
+  <menu>root-menu</menu>
+  <position>
+    <x>0</x>
+    <y>-0</y>
+  </position>
+  </action>
+</keybind>
+```
+
 *<action name="SetDecorations" decorations="value" forceSSD="no" />*
        Set decorations of focused window.