qutebrowser: Fix visual selection errors, typehints
This commit is contained in:
parent
9750e943b9
commit
bd29839910
2 changed files with 18 additions and 8 deletions
|
|
@ -1,15 +1,27 @@
|
|||
import os
|
||||
from typing import cast
|
||||
|
||||
# pylint: disable=C0111
|
||||
from qutebrowser.config.config import ConfigContainer # noqa: F401
|
||||
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
|
||||
|
||||
config: ConfigAPI = cast(ConfigAPI, config) # noqa: F821 pylint: disable=E0602,C0103
|
||||
c: ConfigContainer = cast(ConfigContainer, c) # noqa: F821 pylint: disable=E0602,C0103
|
||||
|
||||
# Autogenerated config.py
|
||||
# Documentation:
|
||||
# qute://help/configuring.html
|
||||
# qute://help/settings.html
|
||||
|
||||
# load additional settings configured via autoconfig.yml
|
||||
config.load_autoconfig()
|
||||
_ = config.load_autoconfig()
|
||||
|
||||
c.content.javascript.log_message.excludes = {
|
||||
"userscript:_qute_stylesheet": [
|
||||
"*Refused to apply inline style because it violates the following Content Security Policy directive: *"
|
||||
],
|
||||
"userscript:_qute_js": ["*TrustedHTML*"],
|
||||
}
|
||||
|
||||
term = os.getenv("TERMINAL", "xterm")
|
||||
|
||||
|
|
@ -73,8 +85,8 @@ c.hints.selectors["code"] = [
|
|||
]
|
||||
|
||||
# give the browser nice theme colors
|
||||
state_dir=os.environ.get('XDG_STATE_HOME', f"{os.environ['HOME']}/.local/state")
|
||||
colorscheme=f"{state_dir}/qutebrowser/colorscheme.py"
|
||||
state_dir = os.environ.get("XDG_STATE_HOME", f"{os.environ['HOME']}/.local/state")
|
||||
colorscheme = f"{state_dir}/qutebrowser/colorscheme.py"
|
||||
if os.path.isfile(colorscheme):
|
||||
config.source(colorscheme)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue