diff --git a/src/.config/qutebrowser/config.py b/src/.config/qutebrowser/config.py index cbb0ca5..acf3202 100644 --- a/src/.config/qutebrowser/config.py +++ b/src/.config/qutebrowser/config.py @@ -43,7 +43,8 @@ c.fonts.web.family.sans_serif = "Inter" c.fonts.web.family.standard = "Inter" c.fonts.web.family.fixed = "JetBrains Mono" -config.bind("td", "config-cycle colors.webpage.darkmode.enabled true false;; restart") +# for QtWebEngine < 6.7, a :restart is needed following this +config.bind("td", "config-cycle colors.webpage.darkmode.enabled true false") # General settings @@ -164,11 +165,11 @@ c.fileselect.single_file.command = [ # (thank you very much dima https://github.com/qutebrowser/qutebrowser/issues/6281) config.bind( "", - "jseval -q window.scrollBy({top: window.innerHeight/2, left: 0, behavior: 'smooth'});", + "jseval -q window.scrollBy({top: window.innerHeight/1.5, left: 0, behavior: 'smooth'});", ) config.bind( "", - "jseval -q window.scrollBy({top: -window.innerHeight/2, left: 0, behavior: 'smooth'});", + "jseval -q window.scrollBy({top: -window.innerHeight/1.5, left: 0, behavior: 'smooth'});", ) config.bind( "G", diff --git a/src/.config/qutebrowser/style.css b/src/.config/qutebrowser/style.css index 9367dc6..b3254e2 100644 --- a/src/.config/qutebrowser/style.css +++ b/src/.config/qutebrowser/style.css @@ -1,3 +1,5 @@ -body { - background: #000000; +@media (prefers-color-scheme: dark) { + body { + background: #000000; + } }