diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-07 17:53:00 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-04-07 17:53:00 -0400 |
| commit | 2ddf877c6cb78a10bfcb5b33142195b47232d622 (patch) | |
| tree | 15e541c450756b78c652f204ff60a622f504e3ff | |
| parent | 3be52f10d1ed9844da116ad9364099d72cb6ded4 (diff) | |
| download | home-2ddf877c6cb78a10bfcb5b33142195b47232d622.tar.gz | |
zathura and more colorscheme stuff
| -rw-r--r-- | modules/colors/default.nix | 2 | ||||
| -rw-r--r-- | modules/colors/google-dark.nix | 35 | ||||
| -rw-r--r-- | modules/colors/tomorrow.nix | 36 | ||||
| -rw-r--r-- | modules/default.nix | 2 | ||||
| -rw-r--r-- | modules/global.nix | 1 | ||||
| -rw-r--r-- | modules/sway/default.nix | 2 | ||||
| -rw-r--r-- | modules/zathura.nix | 64 | ||||
| -rw-r--r-- | void/home.nix | 2 |
8 files changed, 142 insertions, 2 deletions
diff --git a/modules/colors/default.nix b/modules/colors/default.nix index 954e743..8bf8a33 100644 --- a/modules/colors/default.nix +++ b/modules/colors/default.nix @@ -3,5 +3,7 @@ imports = [ ./mountain.nix ./default-dark.nix + ./tomorrow.nix + ./google-dark.nix ]; } diff --git a/modules/colors/google-dark.nix b/modules/colors/google-dark.nix new file mode 100644 index 0000000..850ca8b --- /dev/null +++ b/modules/colors/google-dark.nix @@ -0,0 +1,35 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.google-dark; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.google-dark = { + enable = lib.mkEnableOption "google-dark theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + name = "base16-google-dark"; + base00 = "#1d1f21"; + base01 = "#282a2e"; + base02 = "#373b41"; + base03 = "#969896"; + base04 = "#b4b7b4"; + base05 = "#c5c8c6"; + base06 = "#e0e0e0"; + base07 = "#ffffff"; + base08 = "#CC342B"; + base09 = "#F96A38"; + base0A = "#FBA922"; + base0B = "#198844"; + base0C = "#3971ED"; + base0D = "#3971ED"; + base0E = "#A36AC7"; + base0F = "#3971ED"; + }; + }; +} diff --git a/modules/colors/tomorrow.nix b/modules/colors/tomorrow.nix new file mode 100644 index 0000000..9cfcb25 --- /dev/null +++ b/modules/colors/tomorrow.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.colors.tomorrow; + hexColorRegex = ''#([0-9a-fA-F]{3}){1,2}''; + hexColor = { + type = lib.types.strMatching hexColorRegex; + }; +in +{ + options.modules.colors.tomorrow = { + enable = lib.mkEnableOption "tomorrow theme"; + }; + + config = lib.mkIf cfg.enable { + modules.scheme = { + light = true; + name = "base16-tomorrow"; + base00 = "#ffffff"; + base01 = "#e0e0e0"; + base02 = "#d6d6d6"; + base03 = "#8e908c"; + base04 = "#969896"; + base05 = "#4d4d4c"; + base06 = "#282a2e"; + base07 = "#1d1f21"; + base08 = "#c82829"; + base09 = "#f5871f"; + base0A = "#eab700"; + base0B = "#718c00"; + base0C = "#3e999f"; + base0D = "#4271ae"; + base0E = "#8959a8"; + base0F = "#a3685a"; + }; + }; +} diff --git a/modules/default.nix b/modules/default.nix index 08749ae..502413b 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -19,6 +19,6 @@ ./gpg ./pass ./colors - # ./mountain.nix + ./zathura.nix ]; } diff --git a/modules/global.nix b/modules/global.nix index da2e9f8..b257b29 100644 --- a/modules/global.nix +++ b/modules/global.nix @@ -48,6 +48,7 @@ in git.enable = true; lazygit.enable = true; tofi.enable = true; + zathura.enable = true; }; nixGL = lib.mkIf cfg.notNixOS { diff --git a/modules/sway/default.nix b/modules/sway/default.nix index 2280fd1..23f3d9c 100644 --- a/modules/sway/default.nix +++ b/modules/sway/default.nix @@ -76,7 +76,7 @@ in output = { "*" = { - bg = "#0d0d0d solid_color"; + bg = "${scheme.base00} solid_color"; }; "eDP-1" = { mode = "2880x1920@120.00Hz"; diff --git a/modules/zathura.nix b/modules/zathura.nix new file mode 100644 index 0000000..aa2cfad --- /dev/null +++ b/modules/zathura.nix @@ -0,0 +1,64 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.zathura; + scheme = config.modules.scheme; + fmt = col: lib.strings.removePrefix "#" col; +in +{ + options.modules.zathura = { + enable = lib.mkEnableOption "zathura"; + }; + + config = lib.mkIf cfg.enable { + programs.zathura = { + enable = true; + mappings = { + m = "feedkeys <Left>"; + n = "feedkeys <Down>"; + e = "feedkeys <Up>"; + i = "feedkeys <Right>"; + "<S-j>" = "feedkeys N"; + "<S-k>" = "feedkeys E"; + "[normal] N" = "feedkeys <PageDown>"; + "[normal] E" = "feedkeys <PageUp>"; + "h" = "feedkeys m"; + "j" = "feedkeys n"; + "k" = "feedkeys e"; + "l" = "feedkeys i"; + }; + options = { + font = "BerkeleyMonoPatched Nerd Font Propo 12"; + selection-clipboard = "clipboard"; + recolor = true; + default-fg = scheme.base05; + default-bg = scheme.base00; + completion-fg = scheme.base05; + completion-bg = scheme.base02; + completion-highlight-fg = scheme.base05; + completion-highlight-bg = scheme.base03; + completion-group-bg = scheme.base02; + completion-group-fg = scheme.base0E; + + statusbar-fg = scheme.base05; + statusbar-bg = scheme.base01; + notification-fg = scheme.base05; + notification-bg = scheme.base01; + + inputbar-fg = scheme.base05; + inputbar-bg = scheme.base01; + + recolor-lightcolor = scheme.base00; + recolor-darkcolor = scheme.base05; + index-active-fg = scheme.base05; + index-active-bg = scheme.base01; + + render-loading-bg = scheme.base00; + render-loading-fg = scheme.base05; + + highlight-color = scheme.base01; + highlight-fg = scheme.base05; + highlight-active-color = scheme.base05; + }; + }; + }; +} diff --git a/void/home.nix b/void/home.nix index 5f03175..548a92d 100644 --- a/void/home.nix +++ b/void/home.nix @@ -19,6 +19,8 @@ foot.enable = true; # colors.mountain.enable = true; colors.default-dark.enable = true; + # colors.tomorrow.enable = true; + # colors.google-dark.enable = true; gpg.enable = true; pass = { |