diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-02 13:41:28 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-02 13:41:28 (GMT) |
commit | 90b4dc1e1d73582df0071ea996f9cad6ab957115 (patch) | |
tree | 53f9142dcec4d8d06efeb7e0e5888990e827b130 /scripts/get-screen-dpi | |
parent | 14dd545314bbeaced5d11364dd4fa79f8cc34e2c (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-x | scripts/get-screen-dpi | 6 |
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 |