diff options
author | Brendan Taylor <whateley@gmail.com> | 2009-07-11 10:44:18 -0600 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2009-07-11 10:44:18 -0600 |
commit | 29032b6fb02cb5e7b29bf761e6c75bb71c1aa7be (patch) | |
tree | b4d6a1cae391a0a41ad4c68cc37d3d3a3e641428 /examples | |
parent | 633c4bd519e3f3557526e0b4b5cc0e90868f80b3 (diff) | |
parent | 0e985d44b7a2a86620c878915e480ec9ddb491bf (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/config | 4 | ||||
-rwxr-xr-x | examples/data/uzbl/scripts/cookies.py | 4 |
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() |