summaryrefslogtreecommitdiff
path: root/modules/user/aesthetics/targets/foot.nix
diff options
context:
space:
mode:
authoroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
committeroutremonde <outremonde@vivaldi.net>2025-06-10 20:32:00 -0400
commit9786eb8672213344d8d1b7bdef12bc94510b20db (patch)
treeb7d79440800c92d32187ab32c636b0830c94a610 /modules/user/aesthetics/targets/foot.nix
initialized repository
Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626
Diffstat (limited to 'modules/user/aesthetics/targets/foot.nix')
-rw-r--r--modules/user/aesthetics/targets/foot.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/modules/user/aesthetics/targets/foot.nix b/modules/user/aesthetics/targets/foot.nix
new file mode 100644
index 0000000..c6c2283
--- /dev/null
+++ b/modules/user/aesthetics/targets/foot.nix
@@ -0,0 +1,55 @@
+{ config, lib, ... }: let
+ cfg = config.aesthetics.targets.foot;
+ aes = config.aesthetics;
+in {
+ options.aesthetics.targets.foot.enable = lib.mkOption {
+ type = lib.types.bool;
+ default = (aes.enableAllTargets && aes.hasGui);
+ description = "Whether to enable the aesthetics foot target.";
+ };
+ config = lib.mkIf (cfg.enable && config.programs.foot.enable) {
+ programs.foot.settings = {
+ main.font = "${aes.font.name}:size=${aes.font.size.small}";
+ tweak.font-monospace-warn = false;
+ colors = with aes.scheme; {
+ background = base00;
+ foreground = base05;
+
+ # normal
+ regular0 = base00;
+ regular1 = base08;
+ regular2 = base0B;
+ regular3 = base0A;
+ regular4 = base0D;
+ regular5 = base0E;
+ regular6 = base0C;
+ regular7 = base05;
+
+ # bright
+ bright0 = base03;
+ bright1 = base09;
+ bright2 = base01;
+ bright3 = base02;
+ bright4 = base04;
+ bright5 = base06;
+ bright6 = base0F;
+ bright7 = base07;
+
+ # extended
+ "16" = base09;
+ "17" = base0F;
+ "18" = base01;
+ "19" = base02;
+ "20" = base04;
+ "21" = base06;
+
+ # misc
+ selection-background = base05;
+ selection-foreground = base00;
+ urls = base04;
+ jump-labels = "${base00} ${base0A}";
+ scrollback-indicator = "${base00} ${base04}";
+ };
+ };
+ };
+}