summaryrefslogtreecommitdiffstats
path: root/qutebrowser/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'qutebrowser/config.py')
-rw-r--r--qutebrowser/config.py41
1 files changed, 7 insertions, 34 deletions
diff --git a/qutebrowser/config.py b/qutebrowser/config.py
index 4684b14..a43eb02 100644
--- a/qutebrowser/config.py
+++ b/qutebrowser/config.py
@@ -10,11 +10,9 @@
## Aliases for commands. The keys of the given dictionary are the
## aliases, while the values are the commands they map to.
## Type: Dict
-##c.aliases = {"ncbookmark": "open -t https://ronver.xyz/index.php/apps/bookmarks/bookmarklet?output=popup&url="}
-c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
+# c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
#c.aliases.update({"ncbookmark": "jseval javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('https://ronver.xyz/index.php/apps/bookmarks/bookmarklet?output=popup&url=');});" })
#c.aliases.update({"ncbookmark": "jseval javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('https://ronver.xyz/index.php/apps/bookmarks/bookmarklet?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=500px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);});" })
-#c.aliases.update({"pboard": "jseval javascript:q=location.href;if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;void(open('http://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p),'Pinboard', 'toolbar=no,width=700,height=350'));"})
## Time interval (in milliseconds) between auto-saves of
## config/cookies/etc.
## Type: Int
@@ -24,31 +22,6 @@ c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
## Type: Bool
c.auto_save.session = True
-# Remove images and javascript from sites
-#c.content.images = False
-config.set('content.images', False, '*://www.bbc.co.uk/*')
-#config.set('content.javascript.enabled', False, '*://www.bbc.co.uk/*')
-#
-#config.set('content.images', False, '*://www.telegraph.co.uk/*')
-#config.set('content.javascript.enabled', False, '*://www.telegraph.co.uk/*')
-config.set('content.javascript.enabled', True, '*://office.com/*')
-config.set('content.javascript.enabled', True, '*://microsoft.com/*')
-config.set('content.javascript.enabled', True, '*://google.co.uk/*')
-config.set('content.javascript.enabled', True, '*://google.com/*')
-config.set('content.javascript.enabled', True, '*://todoist.com/*')
-config.set('content.javascript.enabled', True, '*://*.calendar.google.com/*')
-config.set('content.javascript.enabled', True, '*://*.mail.protonmail.com/*')
-config.set('content.javascript.enabled', True, '*://*.todoist.com/*')
-config.set('content.javascript.enabled', True, '*://*.vault.bitwarden.com/*')
-config.set('content.javascript.enabled', True, '*://*.www.google.com/*')
-config.set('content.javascript.enabled', True, '*://device.login.microsoftonline.com/*')
-config.set('content.javascript.enabled', True, '*://login.microsoftonline.com/*')
-config.set('content.javascript.enabled', True, '*://www.office.com/*')
-config.set('content.javascript.enabled', True, '*://www.youtube.com/*')
-
-c.content.javascript.enabled = True
-
-
## Backend to use to display websites. qutebrowser supports two different
## web rendering engines / backends, QtWebKit and QtWebEngine. QtWebKit
## was discontinued by the Qt project with Qt 5.6, but picked up as a
@@ -72,6 +45,8 @@ c.content.javascript.enabled = True
## Type: Dict
# c.bindings.key_mappings = {'<Ctrl-[>': '<Escape>', '<Ctrl-6>': '<Ctrl-^>', '<Ctrl-M>': '<Return>', '<Ctrl-J>': '<Return>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>'}
+config.bind('<z><p><l>', 'spawn --userscript qute-pass --password-only')
+
## Background color of the completion widget category headers.
## Type: QssColor
# c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050)'
@@ -521,7 +496,7 @@ c.content.javascript.enabled = True
## - 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 = 'no-unknown-3rdparty'
+# c.content.cookies.accept = 'all'
## Store cookies. Note this option needs a restart with QtWebEngine on Qt
## < 5.9.
@@ -1140,7 +1115,7 @@ c.content.cookies.accept = 'no-unknown-3rdparty'
## as it can cause issues with some bitmap fonts. As an alternative to
## this, it's possible to set font sizes and the `zoom.default` setting.
## Type: Bool
-# c.qt.highdpi = False
+c.qt.highdpi = True
## When to use Chromium's low-end device mode. This improves the RAM
## usage of renderer processes, at the expense of performance.
@@ -1462,7 +1437,7 @@ c.tabs.close_mouse_button = 'middle'
## Page to open if :open -t/-b/-w is used without URL. Use `about:blank`
## for a blank page.
## Type: FuzzyUrl
-# c.url.default_page = 'https://start.duckduckgo.com/'
+c.url.default_page = 'https://start.duckduckgo.com/'
## URL segments where `:navigate increment/decrement` will search for a
## number.
@@ -1489,10 +1464,9 @@ c.tabs.close_mouse_button = 'middle'
## used by prepending the search engine name to the search term, e.g.
## `:open google qutebrowser`.
## Type: Dict
-#c.url.searchengines = {'DEFAULT': 'https://www.google.co.uk/?q={}'}
c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}'}
c.url.searchengines.update({'ddg': 'https://duckduckgo.com/?q={}'})
-c.url.searchengines.update({'g': 'https://www.google.co.uk/?q={}'})
+c.url.searchengines.update({'g': 'https://www.google.co.uk/#q={}'})
c.url.searchengines.update({'deb': 'https://packages.debian.org/search?keywords={}'})
c.url.searchengines.update({'t': 'https://twitter.com/search?q={}'})
c.url.searchengines.update({'yt': 'https://www.youtube.com/results?search_query={}'})
@@ -1600,7 +1574,6 @@ config.bind(';M', 'hint links spawn mpv {hint-url}')
# config.bind('@', 'run-macro')
# config.bind('B', 'set-cmd-text -s :quickmark-load -t')
config.bind('D', 'nop')
-config.bind(';P', 'spawn --userscript pinboard.sh')
# config.bind('F', 'hint all tab')
# config.bind('G', 'scroll-to-perc')
# config.bind('H', 'back')