diff --git a/README.md b/README.md index 11b0ae8..7d7a3f1 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,8 @@ This is my dotfiles repo. It's a work in progress, and I'm still learning how to Themes and colors are managed by the `home/variable/theme` folder. +To apply the theme to duckduckgo, follow the instructions in `$HOME/.config/duckduckgo-colorscheme.js`. + ## Scripts ### Nix/NixOs shortcuts diff --git a/home/qutebrowser/default.nix b/home/qutebrowser/default.nix index a2fd561..e0cf8c3 100644 --- a/home/qutebrowser/default.nix +++ b/home/qutebrowser/default.nix @@ -30,6 +30,7 @@ nixvim = "https://nix-community.github.io/nixvim/"; hyprland = "https://wiki.hyprland.org/"; nerdfont = "https://www.nerdfonts.com/cheat-sheet"; + youtube = "https://youtube.com/"; }; settings = { @@ -86,6 +87,8 @@ normal.fg = "#${config.theme.colors.fg}"; private.bg = "#${config.theme.colors.bg}"; private.fg = "#${config.theme.colors.fg}"; + insert.bg = "#${config.theme.colors.primary-bg}"; + insert.fg = "#${config.theme.colors.primary-fg}"; command = { bg = "#${config.theme.colors.alt-bg}"; fg = "#${config.theme.colors.alt-fg}"; @@ -108,7 +111,9 @@ }; }; - #webpage.darkmode.enabled = true; + #webpage.darkmode.enabled = true; # Enable dark mode for all websites (Weird on images) + webpage.preferred_color_scheme = + "dark"; # Enable dark mode for websites that support it }; fonts = { default_family = "${config.theme.font}"; }; @@ -239,7 +244,7 @@ config.unbind("tl") config.unbind("gt") - c.tabs.padding = {"bottom": 0, "left": 7, "right": 7, "top": 0} + c.tabs.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6} config.load_autoconfig(True) ''; diff --git a/home/qutebrowser/duckduckgo-colorscheme.nix b/home/qutebrowser/duckduckgo-colorscheme.nix index b955337..93ffd7f 100644 --- a/home/qutebrowser/duckduckgo-colorscheme.nix +++ b/home/qutebrowser/duckduckgo-colorscheme.nix @@ -1,6 +1,8 @@ { config, ... }: { xdg.configFile."duckduckgo-colorscheme.js".text = '' + // Go to DuckDuckGo settings page, open the console, paste the code and hit enter. + // based on https://ddg.codingcodax.dev/ // Cookies string for your theme const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';