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 %% # %%base16_template: qutebrowser##default %%
base00 = "#000000" base00 = "#000000"
base01 = "#202020" base01 = "#202020"
@ -315,8 +320,14 @@ c.tabs.background = True
# Homepage DDG # Homepage DDG
c.url.default_page = 'https://start.duckduckgo.com' c.url.default_page = 'https://start.duckduckgo.com'
# Use vim for editing with ^E
c.editor.command = ['x-terminal-emulator', 'vim', '{file}']
# Custom bindings # Custom bindings
config.bind(',m', 'spawn mpv {url}') config.bind(',m', 'spawn mpv {url}')
config.bind(',M', 'hint links spawn mpv {hint-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() config.load_autoconfig()