aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/configs/sampleconfig15
-rw-r--r--examples/configs/sampleconfig-dev14
-rwxr-xr-xexamples/scripts/load_url_from_history.sh6
3 files changed, 24 insertions, 11 deletions
diff --git a/examples/configs/sampleconfig b/examples/configs/sampleconfig
index 0f2fa5f..7b88682 100644
--- a/examples/configs/sampleconfig
+++ b/examples/configs/sampleconfig
@@ -21,10 +21,11 @@ show_status = 1
status_top = 0
[bindings]
-j = scroll_down
-k = scroll_up
-h = scroll_left
-l = scroll_right
+# scroll down/up/left/right
+j = scroll_vert 20
+k = scroll_vert -20
+h = scroll_horz -20
+l = scroll_horz 20
b = back
m = forward
s = stop
@@ -45,3 +46,9 @@ U = spawn /usr/share/uzbl/examples/scripts/load_url_from_bookmarks.sh
[network]
+proxy_server =
+#values 0-3
+http_debug = 1
+user-agent = uzbl
+max_conns =
+max_conns_per_host =
diff --git a/examples/configs/sampleconfig-dev b/examples/configs/sampleconfig-dev
index 2d2c5f6..a1ba48d 100644
--- a/examples/configs/sampleconfig-dev
+++ b/examples/configs/sampleconfig-dev
@@ -21,10 +21,11 @@ show_status = 1
status_top = 0
[bindings]
-j = scroll_down
-k = scroll_up
-h = scroll_left
-l = scroll_right
+## scroll down/up/left/right
+j = scroll_vert 20
+k = scroll_vert -20
+h = scroll_horz -20
+l = scroll_horz 20
b = back
m = forward
s = stop
@@ -44,9 +45,10 @@ u = spawn ./examples/scripts/load_url_from_history.sh
U = spawn ./examples/scripts/load_url_from_bookmarks.sh
[network]
-proxy_server = http://192.168.1.10:8118
+# to start a local socks server, do : ssh -fND localhost:8118 localhost
+#proxy_server = http://127.0.0.1:8118
#values 0-3
-http_debug = 1
+http_debug = 0
user-agent = uzbl
max_conns =
max_conns_per_host =
diff --git a/examples/scripts/load_url_from_history.sh b/examples/scripts/load_url_from_history.sh
index 81a220a..3e2e2ee 100755
--- a/examples/scripts/load_url_from_history.sh
+++ b/examples/scripts/load_url_from_history.sh
@@ -2,6 +2,10 @@
# you probably really want this in your $XDG_DATA_HOME (eg $HOME/.local/share/uzbl/history)
history_file=/tmp/uzbl.history
-goto=`awk '{print $3}' $history_file | sort | uniq | dmenu -i`
+# choose from all entries, sorted and uniqued
+# goto=`awk '{print $3}' $history_file | sort -u | dmenu -i`
+
+# choose from all entries, the first one being current url, and after that all others, sorted and uniqued.
+current=`tail -n 1 $history_file | awk '{print $3}'`; goto=`(echo $current; awk '{print $3}' $history_file | grep -v "^$current\$" | sort -u) | dmenu -i`
#[ -n "$goto" ] && echo "uri $goto" > $4
[ -n "$goto" ] && uzblctrl -s $5 -c "uri $goto"