aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conkerorrc48
-rwxr-xr-xinstall5
2 files changed, 53 insertions, 0 deletions
diff --git a/conkerorrc b/conkerorrc
new file mode 100644
index 0000000..fe16952
--- /dev/null
+++ b/conkerorrc
@@ -0,0 +1,48 @@
+// vim:ft=javascript
+
+require("session.js");
+session_auto_save_auto_load = true;
+
+require("favicon.js");
+require("new-tabs.js");
+tab_bar_show_icon = true;
+tab_bar_show_index = true;
+
+url_completion_use_history = true;
+
+define_opensearch_webjump("ddg", "ddg.xml");
+
+/////////////////////////////////////////////////////////////////////////////////
+// reopening closed buffers
+var my_closed_buffers = new Array();
+
+//save the URL of the current buffer before closing it
+interactive("my-close-and-save-current-buffer",
+ "close and save the current buffer for later restore",
+ function(I) {
+ if(my_closed_buffers.length==10){
+ my_closed_buffers.shift(); // remove older item to save
+ // memory, just save maximum 10 buffers
+ }
+ my_closed_buffers.push(I.buffer.document.URL);
+ kill_buffer(I.buffer); //kill the current buffer
+ });
+
+undefine_key(default_global_keymap, "q");
+define_key(default_global_keymap, "q", "my-close-and-save-current-buffer");
+
+interactive("my-open-closed-buffer",
+ "open the last closed buffer",
+ function(I){
+ // check if the array length > 0
+ if(my_closed_buffers.length>0){
+ // load the URL in new windows
+ load_url_in_new_buffer(
+ my_closed_buffers[my_closed_buffers.length - 1], I.window);
+ // remove the first item in the array
+ my_closed_buffers.pop();
+ }
+ });
+
+define_key(default_global_keymap, "A-W", "my-open-closed-buffer")
+/////////////////////////////////////////////////////////////////////////////////
diff --git a/install b/install
index 632360e..e23d9c2 100755
--- a/install
+++ b/install
@@ -46,6 +46,11 @@ if [[ $REPLY =~ ^[Yy]?$ ]]; then
inst local/bin/mxrandr $WHOME/.local/bin/mxrandr
fi
+read -p "Install Conkeror configuration? (Y/n) "
+if [[ $REPLY =~ ^[Yy]?$ ]]; then
+ inst conkerorrc $WHOME/.conkerorrc
+fi
+
read -p "Install MPD configuration? (Y/n) "
if [[ $REPLY =~ ^[Yy]?$ ]]; then
inst config/mpd $WHOME/.config/mpd