diff --git a/.config/qutebrowser/autoconfig.yml b/.config/qutebrowser/autoconfig.yml new file mode 100644 index 00000000..da8df7b7 --- /dev/null +++ b/.config/qutebrowser/autoconfig.yml @@ -0,0 +1,10 @@ +# If a config.py file exists, this file is ignored unless it's explicitly loaded +# via config.load_autoconfig(). For more information, see: +# https://github.com/qutebrowser/qutebrowser/blob/main/doc/help/configuring.asciidoc#loading-autoconfigyml +# DO NOT edit this file by hand, qutebrowser will overwrite it. +# Instead, create a config.py - see :help for details. + +config_version: 2 +settings: + content.javascript.clipboard: + https://github.com: access-paste diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 10111c2d..62232add 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -1,6 +1,11 @@ # $XDG_CONFIG_HOME/qutebrowser/config.py -# pyright: disabled +# pyright: basic, reportUnboundVariable = false, reportAttributeAccessIssue = false # general settings +from typing import Any + + +config: Any +c: Any config.load_autoconfig() c.editor.command = ["footclient", "kak", "{}"] c.new_instance_open_target = "tab-bg" @@ -24,7 +29,8 @@ c.colors.webpage.darkmode.enabled = True c.colors.webpage.darkmode.algorithm = "lightness-cielab" c.colors.webpage.darkmode.policy.images = "never" config.set("colors.webpage.darkmode.enabled", False, "file://*") -# config.set("colors.webpage.darkmode.enabled", False, "*.sr.ht/*") +config.set("colors.webpage.darkmode.enabled", False, "github.com") +c.colors.webpage.preferred_color_scheme = "dark" # searches c.url.searchengines["DEFAULT"] = "https://duckduckgo.com/?q={}" @@ -121,7 +127,7 @@ ashen = { } # # colors -# c.colors.completion.fg = "#899CA1" +# c.colors.completion.fg = ashen["text"] # c.colors.completion.category.fg = "#F2F2F2" # c.colors.completion.category.bg = "#555555" # c.colors.completion.item.selected.fg = "white" @@ -175,3 +181,5 @@ ashen = { # c.colors.prompts.fg = "#333333" # c.colors.prompts.bg = "#DDDDDD" # c.colors.prompts.selected.bg = "#4779B3" + +config.source("qutebrowser-themes/themes/onedark.py")