# These handlers can't be moved to the new event system yet as we don't# support events that can wait for a response from a script.set scheme_handler = sync_spawn @scripts_dir/scheme.py#set request_handler = sync_spawn @scripts_dir/request.pyset authentication_handler = sync_spawn @scripts_dir/auth.pyset download_handler = sync_spawn @scripts_dir/download.sh

# What to do when a website wants to open a new window:# Open link in new window#@on_event NEW_WINDOW sh 'uzbl-browser ${1:+-u "$1"}' %r# Open in current window (also see the REQ_NEW_WINDOW event handler below)#@on_event NEW_WINDOW uri %s# Open in new tab. Other options are NEW_TAB_NEXT, NEW_BG_TAB and NEW_BG_TAB_NEXT.@on_event NEW_WINDOW event NEW_TAB %s

# What to do when the user requests a new window:# If your the NEW_WINDOW handler opens the uri in the current window, you'll# probably want to change this handler to open a new window or tab.@on_event REQ_NEW_WINDOW event NEW_WINDOW %s