This commit is contained in:
Hadi 2024-03-20 18:31:59 +01:00
parent 35de81a46d
commit 5ad31e7602
3 changed files with 11 additions and 2 deletions

View File

@ -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. 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 ## Scripts
### Nix/NixOs shortcuts ### Nix/NixOs shortcuts

View File

@ -30,6 +30,7 @@
nixvim = "https://nix-community.github.io/nixvim/"; nixvim = "https://nix-community.github.io/nixvim/";
hyprland = "https://wiki.hyprland.org/"; hyprland = "https://wiki.hyprland.org/";
nerdfont = "https://www.nerdfonts.com/cheat-sheet"; nerdfont = "https://www.nerdfonts.com/cheat-sheet";
youtube = "https://youtube.com/";
}; };
settings = { settings = {
@ -86,6 +87,8 @@
normal.fg = "#${config.theme.colors.fg}"; normal.fg = "#${config.theme.colors.fg}";
private.bg = "#${config.theme.colors.bg}"; private.bg = "#${config.theme.colors.bg}";
private.fg = "#${config.theme.colors.fg}"; private.fg = "#${config.theme.colors.fg}";
insert.bg = "#${config.theme.colors.primary-bg}";
insert.fg = "#${config.theme.colors.primary-fg}";
command = { command = {
bg = "#${config.theme.colors.alt-bg}"; bg = "#${config.theme.colors.alt-bg}";
fg = "#${config.theme.colors.alt-fg}"; 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}"; }; fonts = { default_family = "${config.theme.font}"; };
@ -239,7 +244,7 @@
config.unbind("tl") config.unbind("tl")
config.unbind("gt") 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) config.load_autoconfig(True)
''; '';

View File

@ -1,6 +1,8 @@
{ config, ... }: { { config, ... }: {
xdg.configFile."duckduckgo-colorscheme.js".text = '' 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 // 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};'; 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};';