diff options
Diffstat (limited to 'displayconfig/xconfig-test.py')
-rw-r--r-- | displayconfig/xconfig-test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/displayconfig/xconfig-test.py b/displayconfig/xconfig-test.py new file mode 100644 index 0000000..7b28cb2 --- /dev/null +++ b/displayconfig/xconfig-test.py @@ -0,0 +1,15 @@ +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] + + +
\ No newline at end of file |