Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/scripts/get-screen-dpi
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-02 13:41:28 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-02 13:41:28 (GMT)
commit90b4dc1e1d73582df0071ea996f9cad6ab957115 (patch)
tree53f9142dcec4d8d06efeb7e0e5888990e827b130 /scripts/get-screen-dpi
parent14dd545314bbeaced5d11364dd4fa79f8cc34e2c (diff)
Use Xephyr when running under X
Only the display manager can authenticate a new X session with systemd. In a non authenticated session pulseaudio doesn't work and probably other stuff.
Diffstat (limited to 'scripts/get-screen-dpi')
-rwxr-xr-xscripts/get-screen-dpi6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/get-screen-dpi b/scripts/get-screen-dpi
new file mode 100755
index 0000000..8165920
--- /dev/null
+++ b/scripts/get-screen-dpi
@@ -0,0 +1,6 @@
+#!/usr/bin/python
+
+from gi.repository import Gtk
+
+settings = Gtk.Settings.get_default()
+print settings.get_property('gtk-xft-dpi') / 1024