summaryrefslogtreecommitdiffstats
path: root/displayconfig/xconfig-test.py
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-13 05:43:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-13 05:43:39 +0000
commit19ae07d0d443ff8b777f46bcbe97119483356bfd (patch)
treedae169167c23ba7c61814101995de21d6abac2e8 /displayconfig/xconfig-test.py
downloadtde-guidance-19ae07d0d443ff8b777f46bcbe97119483356bfd.tar.gz
tde-guidance-19ae07d0d443ff8b777f46bcbe97119483356bfd.zip
Added KDE3 version of KDE Guidance utilities
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kde-guidance@1102646 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'displayconfig/xconfig-test.py')
-rw-r--r--displayconfig/xconfig-test.py15
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