mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05:00
labwc-config(5): add mousebind direction example
Helped-by: @Consolatis Related-to: #2677
This commit is contained in:
parent
24c199aeef
commit
579dca9768
1 changed files with 24 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue