Permalink
Browse files

Add a script to get current profile name. May need later.

  • Loading branch information...
1 parent 907524c commit 8a1e98b2b187c12427870d1cbec75423589fff41 @phanimahesh phanimahesh committed Mar 18, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 notes/wizardry.py
View
@@ -0,0 +1,9 @@
+#! /usr/bin/python
+
+import compizconfig
+from gi.repository import Gdk
+
+screen= Gdk.Screen.get_default()
+n = screen.get_number()
+context = compizconfig.Context(n)
+print context.CurrentProfile.Name

0 comments on commit 8a1e98b

Please sign in to comment.