From ee54b47b4a24cbea013ab86a2c65454a5a0a8776 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 24 Apr 2009 21:52:25 +0200 Subject: support for reading settings from config file + history logging --- sampleconfig | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sampleconfig (limited to 'sampleconfig') diff --git a/sampleconfig b/sampleconfig new file mode 100644 index 0000000..f112a8c --- /dev/null +++ b/sampleconfig @@ -0,0 +1,8 @@ +# example uzbl config. in a real config, we should obey the xdg spec +[keyboard] +next=somekey + +[behavior] +history_file = /tmp/uzbl.history + +[network] -- cgit v1.2.3 From db7930cad1e84bc600e04a3e8c626d6870a6096a Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 25 Apr 2009 11:08:37 +0200 Subject: this is pretty much how the config should look like ihmo --- sampleconfig | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sampleconfig') diff --git a/sampleconfig b/sampleconfig index f112a8c..d51e932 100644 --- a/sampleconfig +++ b/sampleconfig @@ -1,8 +1,19 @@ # example uzbl config. in a real config, we should obey the xdg spec -[keyboard] -next=somekey [behavior] history_file = /tmp/uzbl.history +download_handler = ./extra/download.sh + +[bindings_internal] +n = next +f = follow_link_here +F = follow_link_new_tab +w = follow_link_new_window + +[bindings_external] +b = ./extra/insert_bookmark.sh +u = ./extra/load_url_from_history.sh +U = ./extra/load_url_from_bookmarks.sh + [network] -- cgit v1.2.3 From 3c4f75b8911f9eae19ac4c374afea3f5eedda7e8 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 25 Apr 2009 11:11:13 +0200 Subject: documented config --- sampleconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sampleconfig') diff --git a/sampleconfig b/sampleconfig index d51e932..4002ba1 100644 --- a/sampleconfig +++ b/sampleconfig @@ -1,5 +1,9 @@ # example uzbl config. in a real config, we should obey the xdg spec +# if history_file is not set, then no history logging is performed. +# bindings_internal denote keys to trigger actions internally in uzbl +# bindings_external denote keys to trigger scripts outside uzbl + [behavior] history_file = /tmp/uzbl.history download_handler = ./extra/download.sh -- cgit v1.2.3 From f8ba7092624b88e142b708c99750fdbca4c3ba16 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 25 Apr 2009 12:28:50 +0200 Subject: dir for fifo --- sampleconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'sampleconfig') diff --git a/sampleconfig b/sampleconfig index 4002ba1..d688fda 100644 --- a/sampleconfig +++ b/sampleconfig @@ -7,6 +7,7 @@ [behavior] history_file = /tmp/uzbl.history download_handler = ./extra/download.sh +fifo_dir = /tmp [bindings_internal] n = next -- cgit v1.2.3 From 5a53ddcb649098d0dfa82745721342e108a5e45c Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 25 Apr 2009 12:52:37 +0200 Subject: cleanup format + allow 2 keyboard modes --- sampleconfig | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'sampleconfig') diff --git a/sampleconfig b/sampleconfig index d688fda..c1dac2b 100644 --- a/sampleconfig +++ b/sampleconfig @@ -1,24 +1,31 @@ # example uzbl config. in a real config, we should obey the xdg spec -# if history_file is not set, then no history logging is performed. +# all keys in the behavior group are optional. if not set, the corresponding behavior is disabed. # bindings_internal denote keys to trigger actions internally in uzbl # bindings_external denote keys to trigger scripts outside uzbl +# keyboard behavior is vimstyle by default (all actions -> 1 key). set +# always_insert_mode to always be in insert mode and disable going out of it. +# if you do this, make sure you've set a modkey so you can reach the actions +# from insert mode by combining them with the modkey + [behavior] history_file = /tmp/uzbl.history download_handler = ./extra/download.sh fifo_dir = /tmp +always_insert_mode = 0 +modkey = Mod4 [bindings_internal] -n = next -f = follow_link_here -F = follow_link_new_tab -w = follow_link_new_window +next = n +follow_link_here = f +follow_link_new_tab = F +follow_link_new_window = w [bindings_external] -b = ./extra/insert_bookmark.sh -u = ./extra/load_url_from_history.sh -U = ./extra/load_url_from_bookmarks.sh +./extra/insert_bookmark.sh = b +./extra/load_url_from_history.sh = u +./extra/load_url_from_bookmarks.sh = U [network] -- cgit v1.2.3