From 5e83a094476f28eb77508c8b470efe3dfd56de83 Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Fri, 9 Jan 2026 17:34:31 -0500 Subject: some big changes --- qute/dot-config/qutebrowser/config.py | 30 +++++++++++++++++++----------- qute/dot-config/qutebrowser/quickmarks | 2 ++ 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'qute') 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" diff --git a/qute/dot-config/qutebrowser/quickmarks b/qute/dot-config/qutebrowser/quickmarks index f1aabfe..3699cfc 100644 --- a/qute/dot-config/qutebrowser/quickmarks +++ b/qute/dot-config/qutebrowser/quickmarks @@ -11,3 +11,5 @@ typography https://practicaltypography.com/ nice font https://lambdaland.org/posts/2025-06-24_reading_blogs/ nice https://henry.codes/writing/a-website-to-destroy-all-websites/ reboot https://takes.jamesomalley.co.uk/p/this-might-be-oversharing +qute https://gitlab.com/jgkamat/dotfiles/-/tree/master/qutebrowser/.config/qutebrowser +dcli https://gitlab.com/theblackdon/dcli/-/blob/main/CHEAT-SHEET.md?ref_type=heads -- cgit v1.2.3-71-gdd5e