Prepare qutebrowser for styler automation
This commit is contained in:
parent
b8e10e727c
commit
fcbadd2bf0
4 changed files with 1 additions and 3273 deletions
|
@ -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
Loading…
Reference in a new issue