diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-12-04 07:19:40 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-12-04 07:19:40 +0100 |
commit | efc78eeb586cb159f50cff4f88d245328a331bcb (patch) | |
tree | 823a8eb85c415507c073f53dae9f62f0fc1880c4 | |
parent | 0e7c85e85e1ae6eaabec8cf45703313ad7692fbc (diff) | |
download | myconfigs-efc78eeb586cb159f50cff4f88d245328a331bcb.tar.gz myconfigs-efc78eeb586cb159f50cff4f88d245328a331bcb.tar.bz2 myconfigs-efc78eeb586cb159f50cff4f88d245328a331bcb.zip |
Drop conkeror configuration
-rw-r--r-- | conkeror/theme/content-buffer-input.css | 13 | ||||
-rw-r--r-- | conkeror/theme/eye-guide.css | 22 | ||||
-rw-r--r-- | conkeror/theme/minibuffer.css | 94 | ||||
-rw-r--r-- | conkeror/theme/mode-line.css | 14 | ||||
-rw-r--r-- | conkeror/theme/new-tabs.css | 41 | ||||
-rw-r--r-- | conkeror/theme/theme.json | 10 | ||||
-rw-r--r-- | conkeror/theme/window--panel.css | 5 | ||||
-rw-r--r-- | conkerorrc | 207 | ||||
-rwxr-xr-x | install | 5 |
9 files changed, 0 insertions, 411 deletions
diff --git a/conkeror/theme/content-buffer-input.css b/conkeror/theme/content-buffer-input.css deleted file mode 100644 index 82acb9e..0000000 --- a/conkeror/theme/content-buffer-input.css +++ /dev/null @@ -1,13 +0,0 @@ -/** - * (C) Copyright 2007-2008 Jeremy Maitin-Shepard - * - * Use, modification, and distribution are subject to the terms specified in the - * COPYING file. -**/ - -@namespace url("http://www.w3.org/1999/xhtml"); - -.__conkeror_textbox_edited_externally { - background-color: #bbbbbb; - -moz-appearance: none; -} diff --git a/conkeror/theme/eye-guide.css b/conkeror/theme/eye-guide.css deleted file mode 100644 index 502049b..0000000 --- a/conkeror/theme/eye-guide.css +++ /dev/null @@ -1,22 +0,0 @@ - -@namespace url("http://www.w3.org/1999/xhtml"); - -#__conkeror_eye_guide { - position: fixed; - left: 0px; - top: 0px; - width: 100%; - background: black; - opacity: 0.1; - z-index: 100000; -} - -/* - * Note, the following selectors can be styled with a - * border-top and border-bottom respectively to achieve - * the effect of a single line scroll-guide: - * - * #__conkeror_eye_guide.__conkeror_eye_guide_scroll_down - * #__conkeror_eye_guide.__conkeror_eye_guide_scroll_up - * - */ diff --git a/conkeror/theme/minibuffer.css b/conkeror/theme/minibuffer.css deleted file mode 100644 index a184564..0000000 --- a/conkeror/theme/minibuffer.css +++ /dev/null @@ -1,94 +0,0 @@ - -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - -#minibuffer { - color: white; - background: #333333; - border-top: 1px solid #285577; - -moz-box-align: baseline; -} - -#minibuffer-input { - background-color: -moz-field !important; -} - -#minibuffer-input .textbox-input-box { - width: 5em; -} - -#minibuffer-input [anonid="annotation"] { - font-style: oblique; -} - -#minibuffer-input [anonid="strut"] { - padding-right: 1em !important; -} - -/* mode text widgets */ - -#minibuffer .mode-text-widget { - display: none; -} - -#minibuffer[minibuffermode="message"] .mode-text-widget { - display: block; - border-left: 1px solid threedshadow; - padding-left: 4px !important; - padding-right: 4px !important; - margin-left: 0px !important; - margin-right: 0px !important; -} - -#minibuffer[minibuffermode="message"] .mode-text-widget[value=""] { - display: none; -} - - -/* minibuffer highlighting */ - -#minibuffer.highlight { - background-color: Highlight; - color: HighlightText; -} - -#minibuffer.highlight[minibuffermode="message"] .mode-text-widget { - border-left: 1px solid highlighttext; -} - - -/* Completions display */ - -tree.completions { margin: 0px !important; } - -tree.completions treechildren { border: none !important; } - -tree.completions treecol { -moz-binding: none !important; } -tree.completions { - -moz-appearance: none !important; - border: 0px none !important; - border-top: 1px solid -moz-Dialog !important; - -moz-border-top-colors: -moz-initial !important; -} - -tree.completions treechildren::-moz-tree-row { - border: none; -} - -tree.completions treechildren::-moz-tree-row(current) { - background-color: Highlight !important; - color: HighlightText !important; -} - -tree.completions treechildren::-moz-tree-cell-text(completion-description) { - font-weight: bold !important; -} - -tree.completions treechildren::-moz-tree-cell-text(current) { - color: HighlightText !important; -} - -tree.completions[hasicons="true"] treechildren::-moz-tree-image { - width: 16px; - height: 16px; - margin-right: 6px; -} diff --git a/conkeror/theme/mode-line.css b/conkeror/theme/mode-line.css deleted file mode 100644 index cec5771..0000000 --- a/conkeror/theme/mode-line.css +++ /dev/null @@ -1,14 +0,0 @@ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - -.mode-line { - color: white; - padding: 2px; - background: #595959; - border-top: 3px solid #285577; - -moz-box-align: center; - overflow: hidden; -} - -.mode-line label[value=""] { - display: none; -} diff --git a/conkeror/theme/new-tabs.css b/conkeror/theme/new-tabs.css deleted file mode 100644 index 0dac555..0000000 --- a/conkeror/theme/new-tabs.css +++ /dev/null @@ -1,41 +0,0 @@ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - -#tab2-bar { - color: white; - background: #595959; - border-bottom: 3px solid #285577; -} - -.tab2 { - -moz-box-align: center; - border-right: 3px solid #285577; - min-width: 10em; - max-width: 15em; -} - -.tab2[selected=true] { - background: #333333; -} - -.tab2:hover { - background: #999; -} - -.tab2-label { - -moz-box-flex: 100; - margin-left: 4pt; - padding-top: 1pt; -} - -.tab2-index { - padding: 0pt 2pt 0pt 3pt; - font-weight: 900; - text-align: center; -} - -.tab2-icon { - width: 16px; - height: 16px; - -moz-margin-start: 4pt; - -moz-margin-end: 3pt; -} diff --git a/conkeror/theme/theme.json b/conkeror/theme/theme.json deleted file mode 100644 index 905b804..0000000 --- a/conkeror/theme/theme.json +++ /dev/null @@ -1,10 +0,0 @@ -{ "sheets": [ - "content-buffer-input.css", - "minibuffer.css", - "mode-line.css", - "tab-bar.css", - "new-tabs.css", - "window--panel.css", - "eye-guide.css" - ] -} diff --git a/conkeror/theme/window--panel.css b/conkeror/theme/window--panel.css deleted file mode 100644 index 6009000..0000000 --- a/conkeror/theme/window--panel.css +++ /dev/null @@ -1,5 +0,0 @@ -@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); - -.panel .panel-row-label { - font-weight: bold; -} diff --git a/conkerorrc b/conkerorrc deleted file mode 100644 index 5e85572..0000000 --- a/conkerorrc +++ /dev/null @@ -1,207 +0,0 @@ -// vim:ft=javascript -require("theme.js"); -theme_load_paths.unshift("~/.conkeror/"); -theme_unload("default"); -theme_load("theme"); - -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 = false; - -require("clicks-in-new-buffer.js"); - -require("opensearch.js"); -define_opensearch_webjump("?", "duckduckgo.xml"); -define_opensearch_webjump("?g", "google.xml"); -define_opensearch_webjump("?w", "wikipedia.xml"); -define_opensearch_webjump("?e", "eBay.xml"); - -external_content_handlers.set("application/pdf", "llpp"); -external_content_handlers.set("video/*", "vlc"); -editor_shell_command = "urxvt -e vim"; - -url_completion_use_history = true; -url_remoting_fn = load_url_in_new_buffer; -download_buffer_automatic_open_target = OPEN_NEW_BUFFER_BACKGROUND; - -require("adblockplus.js"); - -// Set zoom to 90% -session_pref("layout.css.devPixelsPerPx", "0.9"); - -// Just key-kill all websites. I can use quote mode (ctrl+q) -require("key-kill"); -key_kill_mode.test.push(/\/\/.*\//); //regexp matches all sites - -view_source_use_external_editor = true; - -// Set cwd to ~/downloads so that downloads are saved there -cwd = get_home_directory(); -cwd.append("downloads"); - -///////////////////////////////////////////////////////////////////////////////// -// reopening closed buffers -define_key(default_global_keymap, "A-W", "revive-buffer"); - -// Save origin kill_buffer command -var kill_buffer_original = kill_buffer_original || kill_buffer; - -var killed_buffer_urls = []; -var killed_buffer_histories = []; - -// remember_killed_buffer -kill_buffer = function (buffer, force) { - var hist = buffer.web_navigation.sessionHistory; - - if (buffer.display_uri_string && hist) { - killed_buffer_histories.push(hist); - killed_buffer_urls.push(buffer.display_uri_string); - } - - kill_buffer_original(buffer,force); -}; - -interactive("revive-buffer", - "Loads url from a previously killed buffer", - function restore_killed_buffer (I) { - if (killed_buffer_urls.length !== 0) { - var url = yield I.minibuffer.read( - $prompt = "Restore killed url:", - $completer = new all_word_completer($completions = killed_buffer_urls), - $default_completion = killed_buffer_urls[killed_buffer_urls.length - 1], - $auto_complete = "url", - $auto_complete_initial = true, - $auto_complete_delay = 0, - $require_match = true); - - var window = I.window; - var creator = buffer_creator(content_buffer); - var idx = killed_buffer_urls.indexOf(url); - - // Create the buffer - var buf = creator(window, null); - - // Recover the history - buf.web_navigation.sessionHistory = killed_buffer_histories[idx]; - - // This line may seem redundant, but it's necessary. - var original_index = buf.web_navigation.sessionHistory.index; - buf.web_navigation.gotoIndex(original_index); - - // Focus the new tab - window.buffers.current = buf; - - // Remove revived from cemitery - killed_buffer_urls.splice(idx,1); - killed_buffer_histories.splice(idx,1); - } else { - I.window.minibuffer.message("No killed buffer urls"); - } - }); -///////////////////////////////////////////////////////////////////////////////// -// pass password management -define_key(default_global_keymap, "C-j", "pass-get-name"); -define_key(default_global_keymap, "C-J", "pass-get-password"); - -// Extract first and second domain by this hack -function get_domain(I) { - var domain = I.buffer.document.location.href; - var tmp_a = I.buffer.document.createElement('a'); - tmp_a.href = domain; - domain = tmp_a.hostname.match(/[^.]+\.[^.]+$/); - yield co_return(domain); -} - -function shell(cmd, input) { - var res = { - stdout: "", - stderr: "", - result: 0 - }; - res.result = yield shell_command(cmd, - $fds = [{ output: async_binary_string_writer(input) }, - { input: async_binary_reader(function (s) res.stdout+=s||"") }, - { input: async_binary_reader(function (s) res.stderr+=s||"") } - ] - ); - yield co_return(res); -}; - -var pass_domain = ""; -var pass_account = ""; - -function pass_chose_account(I) { - pass_domain = yield get_domain(I); - var res = yield shell("cd ~/.password-store && find -path '*" + pass_domain + "*' -type f", ""); - var accs = res.stdout.split('\n'); - if (accs.length == 0 || accs.length == 1) { - I.window.minibuffer.message("pass: No accounts detected for domain: " + pass_domain); - pass_account = ""; - return; - // Note that accs has empty line at end so all this is bumped by one - } else if (accs.length == 2) { - pass_account = accs[0].replace(/\.\//, '').replace(/\.gpg$/, ''); - } else { - var accs_list = []; - for (i = 0; i < accs.length - 1; i++) { - accs_list.push(accs[i].replace(/\.\//, '').replace(/\.gpg$/, '')); - } - pass_account = yield I.minibuffer.read( - $prompt = "Chose account for " + pass_domain + ":", - $completer = new all_word_completer($completions = accs_list), - $default_completion = accs_list[accs_list.length - 1], - $auto_complete = "url", - $auto_complete_initial = true, - $auto_complete_delay = 0, - $require_match = true); - } -} - -function pass_get_password(I) { - var domain = yield get_domain(I); - if (pass_account == "" || String(pass_domain) != String(domain)) { - yield pass_chose_account(I); - } - if (pass_account != "" && I.buffer.focused_element) { - var res = yield shell("pass " + pass_account, ""); - dumpln(res.stdout); - I.buffer.focused_element.value = res.stdout; - I.window.minibuffer.message("pass: Inserted password for account: " + pass_account); - pass_account = ""; // remove selected account so we can select new one - } -}; - -function pass_get_name(I) { - yield pass_chose_account(I); - I.window.minibuffer.message("pass: Chosen account: " + pass_account); - if (I.buffer.focused_element){ - var regexp = /[^\/]*$/; - I.buffer.focused_element.value = regexp.exec(pass_account)[0]; - } -}; - -interactive("pass-get-name", "Choses account for to be loged as. As result name of account is outputed.", pass_get_name); -interactive("pass-get-password", "Receives password from pass for currently selected account.", pass_get_password); -///////////////////////////////////////////////////////////////////////////////// -// Local SOCKS5 proxy -var proxy_session_enabled = false; -interactive("proxy-session-toggle", - "Toggle the SOCKS proxy server", - function (I) { - if (proxy_session_enabled) { - session_pref('network.proxy.type', 0); //direct connection - I.window.minibuffer.message("SOCKS5 proxy is now disabled."); - proxy_session_enabled = false; - } else { - session_pref('network.proxy.socks', '127.0.0.1'); - session_pref('network.proxy.socks_port', 8123); - session_pref('network.proxy.type', 1); - I.window.minibuffer.message("SOCKS5 proxy 127.0.0.1:8123 is now enabled."); - proxy_session_enabled = true; - } - }); -///////////////////////////////////////////////////////////////////////////////// @@ -99,11 +99,6 @@ if ask "Install desktop (i3..)"; then inst config/user-dirs.dirs ~/.config/user-dirs.dirs fi -if ask "Install Conkeror configuration"; then - inst conkerorrc ~/.conkerorrc - inst conkeror/ ~/.conkeror -fi - if ask "Install Surf configuration"; then inst surf/script.js ~/.surf/script.js inst surf/styles/default.css ~/.surf/styles/default.css |