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
|
# TODO think about implementing a simple toggle for the statusbar, like for the tabs
|
||||||
c.statusbar.hide = False
|
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
|
# FUNCTION
|
||||||
# --------
|
# --------
|
||||||
|
|
||||||
|
@ -132,11 +124,7 @@ config.bind('gp', 'printpdf', mode='normal')
|
||||||
|
|
||||||
# set stylesheets for the browser to use
|
# set stylesheets for the browser to use
|
||||||
# leader - ss to remove all applied stylesheets
|
# leader - ss to remove all applied stylesheets
|
||||||
config.bind(leader + 'ss', 'set content.user_stylesheets ""')
|
config.bind(leader + 's', 'config-cycle content.user_stylesheets ' + 'stylesheets/stylesheet.css ""')
|
||||||
# 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]) )
|
|
||||||
|
|
||||||
# Enable and disable javascript
|
# Enable and disable javascript
|
||||||
config.bind(leader + "js", "config-cycle content.javascript.enabled true false")
|
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