summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-31 19:15:24 +0000
committerDana Jansens <danakj@orodu.net>2002-12-31 19:15:24 +0000
commit745e840547b5443ecfb9b6f0a4f14b0d035d59c2 (patch)
treee20da017ab6d93775136f0cd2267a25f7c83f8d6 /scripts
parent1161a90a70b21d3064a9dee62c72dd4be3025ada (diff)
load config options from the python environment
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am2
-rw-r--r--scripts/config.py34
-rw-r--r--scripts/globals.py39
3 files changed, 38 insertions, 37 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 5b55ecae..303ab327 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 globals.py
+script_DATA = clientmotion.py clicks.py globals.py config.py
EXTRA_DIST = $(script_DATA)
distclean-local:
diff --git a/scripts/config.py b/scripts/config.py
new file mode 100644
index 00000000..c3c43754
--- /dev/null
+++ b/scripts/config.py
@@ -0,0 +1,34 @@
+#############################################################################
+### Options that can be defined on startup that affect the behavior of ###
+### openbox. ###
+#############################################################################
+
+# client_buttons - a list of the modifier(s) and buttons which are grabbed on
+# client windows (for interactive move/resize, etc).
+# examples: "A-2", "C-A-2", "W-1"
+client_buttons = ["A-1", "A-2", "A-3"]
+
+# theme - the theme used to decorate everything.
+theme = "/usr/local/share/openbox/styles/nyz"
+
+
+#############################################################################
+### Options that can be modified by the user to change the default hooks' ###
+### behaviors. ###
+#############################################################################
+
+# click_focus - '1' if clicking in a client will cause it to focus in the
+# default hook functions; else '0'.
+click_focus = 0
+# click_raise - '1' if clicking in a client will cause it to raise to the
+# top of its stacking layer; else '0'.
+click_raise = 0
+# enter_focus - '1' if entering a client window will cause it to focus in the
+# default hook functions; else '0'.
+enter_focus = 1
+# leave_unfocus - '1' if leaving a client window will cause it to unfocus in
+# the default hook functions; else '0'.
+leave_unfocus = 1
+
+
+print "Loaded config.py"
diff --git a/scripts/globals.py b/scripts/globals.py
index 0a3389ec..450ee8b7 100644
--- a/scripts/globals.py
+++ b/scripts/globals.py
@@ -1,47 +1,14 @@
#############################################################################
-### Options that can be defined on startup that affect the behavior of ###
-### openbox. ###
-#############################################################################
-
-# client_buttons - a list of the modifier(s) and buttons which are grabbed on
-# client windows (for interactive move/resize, etc)
-# examples: "A-2", "C-A-2", "W-1"
-client_buttons = ["A-1", "A-2", "A-3"]
-
-
-
-#############################################################################
-### Options that can be modified by the user to change the default hooks' ###
-### behaviors. ###
-#############################################################################
-
-# click_focus - true if clicking in a client will cause it to focus in the
-# default hook functions
-click_focus = 0
-# click_raise - true if clicking in a client will cause it to raise to the
-# top of its stacking layer
-click_raise = 0
-# enter_focus - true if entering a client window will cause it to focus in the
-# default hook functions
-enter_focus = 1
-# leave_unfocus - true if leaving a client window will cause it to unfocus in
-# the default hook functions
-leave_unfocus = 1
-
-
-
-#############################################################################
### Variables defined for other scripts to use. ###
#############################################################################
# openbox - pointer to the current Openbox instance
openbox = Openbox_instance()
-# screen - list of all screens in the current openbox instance
-screen = []
+# screens - list of all screens in the current openbox instance
+screens = []
for i in range(Openbox_screenCount(openbox)):
- screen.append(Openbox_screen(openbox, i))
-
+ screens.append(Openbox_screen(openbox, i))
print "Loaded globals.py"