aboutsummaryrefslogtreecommitdiff
path: root/qute/dot-config/qutebrowser/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'qute/dot-config/qutebrowser/config.py')
-rw-r--r--qute/dot-config/qutebrowser/config.py30
1 files changed, 19 insertions, 11 deletions
diff --git a/qute/dot-config/qutebrowser/config.py b/qute/dot-config/qutebrowser/config.py
index 0ec21a5..714fab2 100644
--- a/qute/dot-config/qutebrowser/config.py
+++ b/qute/dot-config/qutebrowser/config.py
@@ -1,6 +1,3 @@
-c = c
-config = config
-
c.url.searchengines = {
"DEFAULT": "https://duckduckgo.com/?q={}",
"!aw": "https://wiki.archlinux.org/?search={}",
@@ -56,7 +53,12 @@ config.bind(
config.bind(
",M",
- "hint links spawn spawn mpv {hint-url}",
+ "hint links spawn mpv {hint-url}",
+)
+
+config.bind(
+ ",d",
+ "config-cycle -t -p colors.webpage.bg '#282828' white ;; config-cycle -t -p colors.webpage.darkmode.enabled True False",
)
c.editor.command = ["alacritty", "-e", "nvim", "{file}", "-c", "normal {line}G{column}"]
@@ -64,16 +66,22 @@ c.editor.command = ["alacritty", "-e", "nvim", "{file}", "-c", "normal {line}G{c
c.colors.statusbar.private.bg = "#CF87E8"
c.colors.webpage.preferred_color_scheme = "dark"
+
# c.colors.webpage.darkmode.enabled = True
-# c.colors.webpage.darkmode.algorithm = "lightness-cielab"
-# c.colors.webpage.darkmode.threshold.foreground = 150
-# c.colors.webpage.darkmode.threshold.background = 100
-# c.colors.webpage.darkmode.policy.images = "smart"
+c.colors.webpage.darkmode.algorithm = "lightness-cielab"
+c.colors.webpage.darkmode.threshold.foreground = 150
+c.colors.webpage.darkmode.threshold.background = 100
+c.colors.webpage.darkmode.policy.images = "smart"
+
+with config.pattern("*://www.overleaf.com/project/*") as p:
+ p.input.mode_override = "passthrough"
-# config.set("colors.webpage.bg", "#282828")
+# To make Slack sign-in work:
+with config.pattern("*://*.slack.com/*") as p:
+ p.content.unknown_url_scheme_policy = "allow-all"
-# NOTE: to make Slack sign-in work:
-c.content.unknown_url_scheme_policy = "allow-all"
+with config.pattern("*://accounts.google.com/*") as p:
+ p.content.headers.user_agent = "Mozilla/5.0 ({os_info}; rv:131.0) Gecko/20100101 Firefox/131.0"
c.content.blocking.enabled = True
c.content.blocking.method = "both"