aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2009-07-11 10:44:18 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2009-07-11 10:44:18 -0600
commit29032b6fb02cb5e7b29bf761e6c75bb71c1aa7be (patch)
treeb4d6a1cae391a0a41ad4c68cc37d3d3a3e641428 /examples
parent633c4bd519e3f3557526e0b4b5cc0e90868f80b3 (diff)
parent0e985d44b7a2a86620c878915e480ec9ddb491bf (diff)
Merge branch 'experimental' of git://github.com/Dieterbe/uzbl into replace-expand-template
Conflicts: uzbl.c
Diffstat (limited to 'examples')
-rw-r--r--examples/config/uzbl/config4
-rwxr-xr-xexamples/data/uzbl/scripts/cookies.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index c431822..4d455b1 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -11,6 +11,10 @@ set history_handler = spawn $XDG_DATA_HOME/uzbl/scripts/history.sh
set download_handler = spawn $XDG_DATA_HOME/uzbl/scripts/download.sh
set cookie_handler = spawn $XDG_DATA_HOME/uzbl/scripts/cookies.py
+# Control how new windows should open
+#set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour
+#set new_window = sh 'echo uri "$8" > $4' # open in same window
+
# You can bind whatever things (spawn <foo>, script <bar>,..) to some events TODO: make events system more generic
set load_start_handler = set status_message = <span foreground="khaki">wait</span>
set load_commit_handler = set status_message = <span foreground="green">recv</span>
diff --git a/examples/data/uzbl/scripts/cookies.py b/examples/data/uzbl/scripts/cookies.py
index bf2d2e6..c8cf8c0 100755
--- a/examples/data/uzbl/scripts/cookies.py
+++ b/examples/data/uzbl/scripts/cookies.py
@@ -62,10 +62,10 @@ class FakeResponse:
if __name__ == '__main__':
if 'XDG_DATA_HOME' in os.environ.keys() and os.environ['XDG_DATA_HOME']:
- jar = cookielib.MozillaCookieJar(\
+ jar = cookielib.MozillaCookieJar(
os.path.join(os.environ['XDG_DATA_HOME'],'uzbl/cookies.txt'))
else:
- jar = cookielib.MozillaCookieJar(\
+ jar = cookielib.MozillaCookieJar(
os.path.join(os.environ['HOME'],'.local/share/uzbl/cookies.txt'))
try:
jar.load()