From a17cd15b41951b4ec2b61c830e744a8f4b0bf073 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 16 Nov 2016 11:15:03 +0100 Subject: [PATCH] update qutebrowser configs --- config/qutebrowser/keys.conf | 6 +++++ config/qutebrowser/qutebrowser.conf | 40 +++++++++++++++++------------ local/bin/qutebrowser | 6 ++--- 3 files changed, 33 insertions(+), 19 deletions(-) diff --git a/config/qutebrowser/keys.conf b/config/qutebrowser/keys.conf index 5953d4f..334bc56 100644 --- a/config/qutebrowser/keys.conf +++ b/config/qutebrowser/keys.conf @@ -460,6 +460,12 @@ set-cmd-text : enter-mode insert ;; jseval --quiet var inputs = document.getElementsByTagName("input"); for(var i = 0; i < inputs.length; i++) { var hidden = false; for(var j = 0; j < inputs[i].attributes.length; j++) { hidden = hidden || inputs[i].attributes[j].value.includes("hidden"); }; if(!hidden) { inputs[i].focus(); break; } } z +record-macro + q + +run-macro + @ + [insert] # Keybindings for insert mode. # Since normal keypresses are passed through, only special keys are diff --git a/config/qutebrowser/qutebrowser.conf b/config/qutebrowser/qutebrowser.conf index da675a2..58749cb 100644 --- a/config/qutebrowser/qutebrowser.conf +++ b/config/qutebrowser/qutebrowser.conf @@ -538,25 +538,27 @@ mouse-zoom-divider = 512 # # select-on-remove (SelectOnRemove): # Which tab to select when the focused tab is removed. -# left: Select the tab on the left. -# right: Select the tab on the right. -# previous: Select the previously selected tab. -# Default: right +# prev: Select the tab which came before the closed one (left in +# horizontal, above in vertical). +# next: Select the tab which came after the closed one (right in +# horizontal, below in vertical). +# last-used: Select the previously selected tab. +# Default: next # # new-tab-position (NewTabPosition): # How new tabs are positioned. -# left: On the left of the current tab. -# right: On the right of the current tab. -# first: At the left end. -# last: At the right end. -# Default: right +# prev: Before the current tab. +# next: After the current tab. +# first: At the beginning. +# last: At the end. +# Default: next # # new-tab-position-explicit (NewTabPosition): # How new tabs opened explicitly are positioned. -# left: On the left of the current tab. -# right: On the right of the current tab. -# first: At the left end. -# last: At the right end. +# prev: Before the current tab. +# next: After the current tab. +# first: At the beginning. +# last: At the end. # Default: last # # last-close (String): @@ -654,9 +656,9 @@ mouse-zoom-divider = 512 # Padding for indicators (top, bottom, left, right). # Default: 2,2,0,4 background-tabs = true -select-on-remove = right -new-tab-position = right -new-tab-position-explicit = right +select-on-remove = next +new-tab-position = next +new-tab-position-explicit = next last-close = close show = always show-switching-delay = 800 @@ -806,6 +808,11 @@ cache-size = 52428800 # Valid values: true, false, ask # Default: ask # +# media-capture (BoolAsk): +# Allow websites to record audio/video. +# Valid values: true, false, ask +# Default: ask +# # javascript-can-open-windows-automatically (Bool): # Whether JavaScript programs can open new windows without user # interaction. @@ -895,6 +902,7 @@ css-regions = true hyperlink-auditing = false geolocation = ask notifications = ask +media-capture = ask javascript-can-open-windows-automatically = false javascript-can-close-windows = false javascript-can-access-clipboard = false diff --git a/local/bin/qutebrowser b/local/bin/qutebrowser index 9639533..d74228c 100755 --- a/local/bin/qutebrowser +++ b/local/bin/qutebrowser @@ -1,6 +1,6 @@ #!/usr/bin/python3 -# EASY-INSTALL-ENTRY-SCRIPT: 'qutebrowser==0.8.2','gui_scripts','qutebrowser' -__requires__ = 'qutebrowser==0.8.2' +# EASY-INSTALL-ENTRY-SCRIPT: 'qutebrowser==0.8.4','gui_scripts','qutebrowser' +__requires__ = 'qutebrowser==0.8.4' import re import sys from pkg_resources import load_entry_point @@ -8,5 +8,5 @@ from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( - load_entry_point('qutebrowser==0.8.2', 'gui_scripts', 'qutebrowser')() + load_entry_point('qutebrowser==0.8.4', 'gui_scripts', 'qutebrowser')() )