Fix linter on qutebrowser config, set editor, add paywall handling
This commit is contained in:
parent
430b199476
commit
f85e083345
1 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
# Make linter shut up
|
||||
# pylint: disable=C0111,C0103
|
||||
c = c # noqa: F821 pylint: disable=E0602,W0127
|
||||
config = config # noqa: F821 pylint: disable=E0602,W0127
|
||||
|
||||
# %%base16_template: qutebrowser##default %%
|
||||
base00 = "#000000"
|
||||
base01 = "#202020"
|
||||
|
@ -74,7 +79,7 @@ c.colors.contextmenu.disabled.fg = base04
|
|||
c.colors.contextmenu.menu.bg = base00
|
||||
|
||||
# Foreground color of the context menu. If set to null, the Qt default is used.
|
||||
c.colors.contextmenu.menu.fg = base05
|
||||
c.colors.contextmenu.menu.fg = base05
|
||||
|
||||
# Background color of the context menu’s selected item. If set to null, the Qt default is used.
|
||||
c.colors.contextmenu.selected.bg = base02
|
||||
|
@ -315,8 +320,14 @@ c.tabs.background = True
|
|||
# Homepage DDG
|
||||
c.url.default_page = 'https://start.duckduckgo.com'
|
||||
|
||||
# Use vim for editing with ^E
|
||||
c.editor.command = ['x-terminal-emulator', 'vim', '{file}']
|
||||
|
||||
# Custom bindings
|
||||
config.bind(',m', 'spawn mpv {url}')
|
||||
config.bind(',M', 'hint links spawn mpv {hint-url}')
|
||||
|
||||
# Try to get around paywalls and adblock-block with Google Cache
|
||||
c.aliases['paywall'] = 'open https://www.google.com/search?q=cache:{url}'
|
||||
|
||||
config.load_autoconfig()
|
||||
|
|
Loading…
Add table
Reference in a new issue