Vi.
Vi.

Reputation: 38694

How to programmatically edit xorg.conf?

I need to add Options to ServerLayout (creating ServerLayout if not present).

There can be also xorg.conf.d, but it does not work on that system.

Upvotes: 1

Views: 469

Answers (1)

manugupt1
manugupt1

Reputation: 2437

You can try out augeas. you can use this too parse configuration files using it and xorg.conf is one of them

http://augeas.net/

For xorg.conf, you can use the following lens as the one in your default installation is a bit buggy. https://github.com/Mpounta/augeas/blob/master/lenses/xorg.aug

Upvotes: 2

Related Questions