diff options
Diffstat (limited to 'modules/fuzzel.nix')
| -rw-r--r-- | modules/fuzzel.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/modules/fuzzel.nix b/modules/fuzzel.nix new file mode 100644 index 0000000..8101371 --- /dev/null +++ b/modules/fuzzel.nix @@ -0,0 +1,43 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.fuzzel; + scheme = config.modules.scheme; + fmt = col: lib.strings.removePrefix "#" col; + opaque = col: (fmt col) + "ff"; +in +{ + options.modules.fuzzel = { + enable = lib.mkEnableOption "fuzzel"; + }; + + config = { + programs.fuzzel = lib.mkIf cfg.enable { + enable = true; + settings = { + main = { + font = "monospace:size=14"; + icons-enabled = false; + anchor = "center"; + minimal-lines = true; + horizontal-pad = 10; + lines = 10; + }; + colors = { + background = opaque scheme.base00; + text = opaque scheme.base04; + prompt = opaque scheme.base0C; + input = opaque scheme.base05; + match = opaque scheme.base09; + selection = opaque scheme.base01; + selection-text = opaque scheme.base05; + selection-match = opaque scheme.base0D; + border = opaque scheme.base01; + }; + border = { + width = 3; + radius = 0; + }; + }; + }; + }; +} |