+def toggle_shade(data):
+ client = Openbox_findClient(openbox, data.window())
+ if not client: return
+ print "toggle_shade"
+ OBClient_shade(client, not OBClient_shaded(client))
+
+def shade(data):
+ client = Openbox_findClient(openbox, data.window())
+ if not client: return
+ OBClient_shade(client, 1)
+
+def unshade(data):
+ client = Openbox_findClient(openbox, data.window())
+ if not client: return
+ OBClient_shade(client, 0)
+
+#########################################
+### Convenience functions for scripts ###
+#########################################
+
+def execute(bin, screen = 0):
+ Openbox_execute(openbox, screen, bin)
+