From 103372b02f783053c69f8f94db2c0e161f3e7d93 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 31 Dec 2002 07:19:32 +0000 Subject: create some globals for use in the python scripts --- scripts/Makefile.am | 2 +- scripts/globals.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 scripts/globals.py (limited to 'scripts') diff --git a/scripts/Makefile.am b/scripts/Makefile.am index ecf86a22..5b55ecae 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -1,6 +1,6 @@ scriptdir = $(libdir)/openbox/python MAINTAINERCLEANFILES = Makefile.in -script_DATA = clientmotion.py clicks.py +script_DATA = clientmotion.py clicks.py globals.py EXTRA_DIST = $(script_DATA) distclean-local: diff --git a/scripts/globals.py b/scripts/globals.py new file mode 100644 index 00000000..98f71c34 --- /dev/null +++ b/scripts/globals.py @@ -0,0 +1,9 @@ +# openbox - pointer to the current Openbox instance +openbox = Openbox_instance() + +# screen - list of all screens in the current openbox instance +screen = [] +for i in range(Openbox_screenCount(openbox)): + screen.append(Openbox_screen(openbox, i)) + +print "Loaded globals.py" -- cgit v1.2.3