aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Tom Adams <tom@holizz.com>2009-08-23 20:16:25 +0100
committerGravatar Tom Adams <tom@holizz.com>2009-08-26 09:44:42 +0100
commit46da0c91288a9c9d20af3a92c58b1dc6a00de4f4 (patch)
treebc4730678f5e55f17dc6d5f7d5e4908a7938f943 /examples
parentfa4f3430215808ae4f9af78f00869e9a96b244ef (diff)
Remove redundant history_handler.
Diffstat (limited to 'examples')
-rw-r--r--examples/config/uzbl/config3
-rwxr-xr-xexamples/data/uzbl/scripts/history.sh3
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config
index ab2cf7f..86f4268 100644
--- a/examples/config/uzbl/config
+++ b/examples/config/uzbl/config
@@ -4,14 +4,13 @@
# keyboard behavior in this sample config is sort of vimstyle
# Handlers
-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
#set new_window = sh 'echo uri "$8" > $4' # open in same window
set new_window = sh 'uzbl -u $8' # equivalent to the default behaviour
set load_start_handler = set status_message = <span foreground="khaki">wait</span>
set load_commit_handler = set status_message = <span foreground="green">recv</span>
-set load_finish_handler = set status_message = <span foreground="gold">done</span>
+set load_finish_handler = chain 'set status_message = <span foreground="gold">done</span>' 'spawn $XDG_DATA_HOME/uzbl/scripts/history.sh'
diff --git a/examples/data/uzbl/scripts/history.sh b/examples/data/uzbl/scripts/history.sh
index d726f9c..7c83aa6 100755
--- a/examples/data/uzbl/scripts/history.sh
+++ b/examples/data/uzbl/scripts/history.sh
@@ -1,6 +1,5 @@
#!/bin/sh
-#TODO: strip 'http://' part
file=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/history
[ -d `dirname $file` ] || exit 1
-echo "$8 $6 $7" >> $file
+echo `date +'%Y-%m-%d %H:%M:%S'`" $6 $7" >> $file