[openbox] Include another config file?
dana at orodu.net
Sat Oct 9 20:31:45 EDT 2010
On Sat, Oct 9, 2010 at 5:51 AM, R. Mattes <rm at mh-freiburg.de> wrote:
> On Sat, 9 Oct 2010 00:49:02 -0400, Dana Jansens wrote
>> On Fri, Oct 8, 2010 at 2:55 PM, Xyne <xyne at archlinux.ca> wrote:
>> > Dana Jansens wrote:
>> >> > I wanna split the "~/.config/openbox/rc.xml" to:
>> >> >
>> >> > *rc.xml
>> >> > *keyboard-shortcuts-general.xml
>> >> > *keyboard-shortcuts-pekwm.xml
>> >> > *keyboard-shortcuts-windows.xml
>> >> > *per-application-settings.xml
>> >> >
>> >> > Is there something like an <include> tag, to include other *.xml files?
>> >> >
>> >> Unfortunately, no. As Vlad pointed out you can for menu definitions, but
>> >> not for other stuff.
>> > Would you consider adding such a tag? It could be very useful for sharing
>> > configurations, e.g. shortcuts for tiling windows using GrowTo* etc.
>> I would consider accepting a patch to do so, but probably won't write
>> it myself.
> This sounds like a severe case os reinventing-the-wheel :-)
> Isn't openbox using libxml2 internally? Why not use the mechanics of XInclude
> for the task? Just add _one_ line of code ( xmlXInclude(your_xml_doc_here); )
I hadn't realized libxml had such simple support for that!
This has been commited to my work branch, and I tried it out and it
let's me include things such as:
<xi:include href="keys.xml" />
(Note the change to the default rc.xml file which is required for it
to work though.)
>> However, one problem is ObConf would not know what to do
>> with that either. I intend to make this situation better sometime,
>> but with a more deep overhaul of how config works.
> Doesn't obconf use libobt? By using XInclude everthing should work aut of the
> openbox ...
Thanks for this :)
> HTH Ralf Mattes
>> > Regards,
>> > Xyne
>> > _______________________________________________
>> > openbox mailing list
>> > openbox at icculus.org
>> > http://icculus.org/mailman/listinfo/openbox
>> openbox mailing list
>> openbox at icculus.org
> R. Mattes -- Systemeinheitsstreichler
> Hochschule fuer Musik Freiburg
> rm at inm.mh-freiburg.de
> openbox mailing list
> openbox at icculus.org
More information about the openbox