Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/helpers/get-screen-dpi
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-16 09:53:35 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-16 09:53:35 (GMT)
commit61765e0aaae479b94a3fddd01e4e12eae76bb8da (patch)
tree4c00c5555c77d70db6bd8cae2768d365d12c6702 /commands/helpers/get-screen-dpi
parent76d6fad87094008bc25e3b4e090fb79631414fec (diff)
Move the remaining scripts to commands
Diffstat (limited to 'commands/helpers/get-screen-dpi')
-rwxr-xr-xcommands/helpers/get-screen-dpi6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/helpers/get-screen-dpi b/commands/helpers/get-screen-dpi
new file mode 100755
index 0000000..8165920
--- /dev/null
+++ b/commands/helpers/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