You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-guidance/displayconfig/xconfig-test.py

15 lines
362 B

import xorgconfig
xconfig = xorgconfig.readConfig("/etc/X11/xorg.conf")
for screensection in xconfig.getSections("screen"):
print screensection.identifier
print screensection.option
for screensection in xconfig.getSections("device"):
print screensection.option
print screensection.option[1]
print screensection.option[2]