aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-10-21 03:55:43 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-10-21 03:55:43 +0800
commit481652b7d3930e312398b919071b4a3b134cc9e0 (patch)
treec20ea225456cfaaa63f085ceffaa4e25a2c1156b /examples
parent4ec1c9c63c6b06657d515e03fcf9df05c4232dcc (diff)
parent0945c9aa8353579b221f3ea7b94ad0ef44dd5001 (diff)
Merge branch 'experimental' of git://github.com/robm/uzbl into keis-merge
Diffstat (limited to 'examples')
-rw-r--r--examples/config/uzbl/config22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index d3f7cca..b518914 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -42,6 +42,16 @@ set new_window = sh 'uzbl-browser -u $8' # equivalent to the default beh
@on_event LOAD_FINISH @set_status <span foreground="gold">done</span>
@on_event LOAD_FINISH spawn @scripts_dir/history.sh
+# Generate a FORM_ACTIVE event if a text element on the loaded site
+# has initial focus unfortunatelly this only works for text elements,
+# yet due to webkit limitations
+@on_event LOAD_FINISH js if(document.activeElement.type == 'text') {Uzbl.run("event FORM_ACTIVE");}
+
+# Switch to insert mode if a (editable) html form is clicked
+@on_event FORM_ACTIVE @set_mode insert
+# Switch to command mode if anything else is clicked
+@on_event ROOT_ACTIVE @set_mode command
+
# Misc on_event handlers
#@on_event CONFIG_CHANGED print Config changed: %1 = %2
@@ -205,6 +215,18 @@ set formfiller = spawn @scripts_dir/formfiller
@bind <Ctrl><e> = request SET_CURSOR_POS -1
+# === Context menu items =====================================================
+
+# Default context menu
+menu_add Google = set uri = http://google.com
+menu_add Go Home = set uri = http://uzbl.org
+menu_separator separator_1
+menu_add Quit uzbl = exit
+
+# Link context menu
+menu_link_add Print Link = print \@SELECTED_URI
+
+
# === Mode configuration =====================================================
# Define some mode specific uzbl configurations.