Fix linter on qutebrowser config, set editor, add paywall handling

This commit is contained in:
Trysdyn Black 2021-04-04 21:46:54 -07:00
parent 430b199476
commit f85e083345

View file

@ -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 menus 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()