Prepare qutebrowser for styler automation

This commit is contained in:
Marty Oehme 2020-02-16 13:55:51 +01:00
parent b8e10e727c
commit fcbadd2bf0
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
4 changed files with 1 additions and 3273 deletions

View File

@ -72,14 +72,6 @@ config.source('colorscheme.py')
# TODO think about implementing a simple toggle for the statusbar, like for the tabs
c.statusbar.hide = False
# CSS
DARK_STYLESHEET = config.configdir / \
"stylesheets/solarized-dark.css"
LIGHT_STYLESHEET = config.configdir / \
"stylesheets/solarized-light.css"
if DARK_STYLESHEET.exists() and LIGHT_STYLESHEET.exists():
css = [str(DARK_STYLESHEET), str(LIGHT_STYLESHEET)]
# FUNCTION
# --------
@ -132,11 +124,7 @@ config.bind('gp', 'printpdf', mode='normal')
# set stylesheets for the browser to use
# leader - ss to remove all applied stylesheets
config.bind(leader + 'ss', 'set content.user_stylesheets ""')
# leader - sd for dark mode solarized
config.bind(leader + 'sd', 'set content.user_stylesheets ' + str(css[0]) )
# leader - sl for light mode solarized
config.bind(leader + 'sl', 'set content.user_stylesheets ' + str(css[1]) )
config.bind(leader + 's', 'config-cycle content.user_stylesheets ' + 'stylesheets/stylesheet.css ""')
# Enable and disable javascript
config.bind(leader + "js", "config-cycle content.javascript.enabled true false")

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff