]> git.rmz.io Git - dotfiles.git/blobdiff - qutebrowser/config.py
qutebrowser: cdda search engine
[dotfiles.git] / qutebrowser / config.py
index 8938934d346a964bd07379e32dc884b426baa132..0d2aaac8fb271e40c7e589e251de41ca263e18d3 100644 (file)
@@ -24,7 +24,7 @@ try:
     def intercept(info: interceptor.Request):
         url = info.request_url
         if url.host() == "twitter.com":
-            url.setHost("nitter.dark.fail")
+            url.setHost("nitter.eu")
             message.info("Redirecting to " + url.toString())
             info.redirect(url)
         if url.host() == "xkcd.com":
@@ -358,7 +358,7 @@ c.confirm_quit = ['downloads']
 ##   - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
 ##   - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
 ##   - never: Don't accept cookies at all.
-c.content.cookies.accept = 'never'
+c.content.cookies.accept = 'no-3rdparty'
 
 ## Store cookies.
 ## Type: Bool
@@ -578,9 +578,9 @@ c.content.headers.accept_language = 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7,
 ##   - true
 ##   - false
 ##   - ask
-c.content.notifications = 'ask'
-config.set('content.notifications', True, '*://*.gitlab.com/*')
-config.set('content.notifications', True, '*://*.google.com/*')
+c.content.notifications.enabled = 'ask'
+config.set('content.notifications.enabled', True, '*://*.gitlab.com/*')
+config.set('content.notifications.enabled', True, '*://*.google.com/*')
 
 ## Allow pdf.js to view PDF files in the browser. Note that the files can
 ## still be downloaded by clicking the download button in the pdf.js
@@ -781,7 +781,7 @@ c.fileselect.multiple_files.command = in_terminal(['ranger', '--choosefile={}'])
 ## font setting, it's replaced with the fonts listed here. If set to an
 ## empty value, a system-specific monospace default is used.
 ## Type: List of Font, or Font
-c.fonts.default_family = ["Hack"]
+c.fonts.default_family = ["Fira Code"]
 
 ## Default font size to use. Whenever "default_size" is used in a font
 ## setting, it's replaced with the size listed here. Valid values are
@@ -1560,6 +1560,7 @@ c.url.default_page = 'https://duckduckgo.com/?t=chakra'
 ## Type: Dict
 c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}',
                        'ddg':     'https://duckduckgo.com/?t=chakra&q={}',
+                       'cdda':    'https://nornagon.github.io/cdda-guide/?v=0.F-2#/search/{}',
                        'slack':   'https://focalpointpositioning.slack.com/messages/{}',
                        'std':     'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
                        'hoogle':  'https://hoogle.haskell.org/?hoogle={}',