rcxml: load default keybinds on <keyboard><default />

This is an addition to the openbox specification and provides a way to
keep config files simpler whilst allowing user-specific keybinds.

docs/rc.xml shows a simple config file with <default />
docs/rc.xml.full shows the full config
This commit is contained in:
Johan Malm 2021-08-22 19:09:31 +01:00
parent 93244cfbe1
commit b7573c8d36
5 changed files with 105 additions and 42 deletions

View file

@ -8,35 +8,14 @@
<theme>
<name></name>
<cornerRadius>8</cornerRadius>
<font><name>Sans</name><size>12</size></font>
<font><name>sans</name><size>10</size></font>
</theme>
<focus>
<followMouse>no</followMouse>
<raiseOnFocus>no</raiseOnFocus>
</focus>
<!--
Keybind actions are specified in more detail in labwc-actions(5)
The following keybind modifiers are supported:
W - window/super/logo
A - alt
C - ctrl
S - shift
-->
<keyboard>
<keybind key="A-Escape"><action name="Exit" /></keybind>
<keybind key="A-Tab"><action name="NextWindow" /></keybind>
<keybind key="A-Return"><action name="Execute"><command>sakura</command></action></keybind>
<keybind key="A-F3"><action name="Execute"><command>bemenu-run</command></action></keybind>
<keybind key="A-F4"><action name="Close" /></keybind>
<keybind key="W-a"><action name="ToggleMaximize" /></keybind>
<keybind key="A-Left"><action name="MoveToEdge"><direction>left</direction></action></keybind>
<keybind key="A-Right"><action name="MoveToEdge"><direction>right</direction></action></keybind>
<keybind key="A-Up"><action name="MoveToEdge"><direction>up</direction></action></keybind>
<keybind key="A-Down"><action name="MoveToEdge"><direction>down</direction></action></keybind>
<default />
<keybind key="A-Return">
<action name="Execute"><command>sakura</command></action>
</keybind>
</keyboard>
</labwc_config>