LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Adding custom entries to openbox rc.xml file (https://www.linuxquestions.org/questions/linux-software-2/adding-custom-entries-to-openbox-rc-xml-file-4175598911/)

JosephS 02-03-2017 12:32 PM

Adding custom entries to openbox rc.xml file
 
Using Hydrogen1(Bunsenlabs), derived from Debian Jessie
Openbox 3.5.2

I have some custom entries that I want to add to the rc.xml file for Openbox:
Quote:

<!-- Custom Entries for windows-->
<keybind key="A-F12">
<action name="ToggleMaximizeFull"/>
</keybind>
<keybind key="A-F11">
<action name="Iconify"/>
</keybind>
<keybind key="A-F10">
<action name="ToggleMaximizeVert"/>
</keybind>
<keybind key="A-F9">
<action name="ToggleMaximizeHorz"/>
</keybind>
<keybind key="A-F8">
<action name="ToggleShade"/>
</keybind>
<keybind key="A-m">
<action name="MoveToCenter"/>
</keybind>
<keybind key="A-r">
<action name="Resize"/>
</keybind>

<!-- Custom Entries for applications -->
<keybind key="W-C-m">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Mail</name>
</startupnotify>
<command>claws-mail</command>
</action>
</keybind>
Do I need to add these in the various sections of the file or can I add them at the end of the file in my own section? I'm not sure of the syntax to use for that.

szboardstretcher 02-03-2017 12:36 PM

Just has to go in the <keyboard> </keyboard> section.

I do it like this:

Code:

<keyboard>
blah blah stuff already there
blah blah
your custom stuff
</keyboard>

Make sure you remove any duplicates. For example, you called out Alt-F12, make sure there isn't a default Alt-F12 to interfere. Other than that you should be golden.

http://openbox.org/wiki/Help:Configuration


All times are GMT -5. The time now is 02:54 PM.