aboutsummaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-22 22:29:46 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-22 22:29:46 +0100
commit4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a (patch)
tree10dff49a28788bfb8bbabf4fa380de817352767c /qutebrowser
parent9a57b5a5bb5c48bc76bc10c9cbc0809019d91e61 (diff)
parentabe2b612c9f672039894766e72fbba356c7bcfdc (diff)
downloaddotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.tar.gz
dotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.tar.bz2
dotfiles-4cd7fa7d212d11a40b20f21cbfcd74f5863ce23a.zip
Merge remote-tracking branch 'origin/carbon'
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/config.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/qutebrowser/config.py b/qutebrowser/config.py
index 61d5ae8..827d2eb 100644
--- a/qutebrowser/config.py
+++ b/qutebrowser/config.py
@@ -1,5 +1,7 @@
from qutebrowser.api import interceptor
+config.load_autoconfig(True)
+
# Youtube ad blocking
def filter_yt(info: interceptor.Request):
url = info.request_url
@@ -26,6 +28,8 @@ c.url.searchengines = {
'y': 'https://www.youtube.com/results?search_query={}',
'gh': 'https://github.com/search?q={}',
'h': 'https://hoogle.haskell.org/?hoogle={}',
+ 'cpp': 'http://cplusplus.com/search.do?q={}',
+ 'lar': 'https://www.larousse.fr/dictionnaires/francais/{}'
}
c.fonts.default_family = 'Fira Mono'
@@ -42,16 +46,28 @@ c.editor.command = [
c.messages.timeout = 4000
-config.bind(';v', 'hint links spawn /usr/bin/mpv {hint-url} ;;'
+config.bind(';v', 'hint links spawn /usr/bin/mpv --ytdl-format=best {hint-url} ;;'
'message-info "opening in video player"')
config.bind('<Ctrl-J>', 'completion-item-focus next', 'command')
config.bind('<Ctrl-K>', 'completion-item-focus prev', 'command')
+config.bind('J', 'tab-prev', 'normal')
+config.bind('K', 'tab-next', 'normal')
+
+config.bind('<F12>', 'devtools', 'normal')
+
c.colors.webpage.darkmode.enabled = True # Convert light themed sites to dark theme (very nice result)
c.colors.webpage.bg = 'black' # Disabling white flash before page loading
# c.content.proxy = 'socks://localhost:9050/' # tor
+c.content.autoplay = False
+c.content.notifications = False
+c.content.cookies.accept = 'no-3rdparty'
+
+c.auto_save.session = True
+c.session.lazy_restore = True
+
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova