nixcfg/homeManagerModules/apps/fuzzel/default.nix

38 lines
949 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
config,
lib,
2024-04-07 22:16:33 -04:00
...
2024-08-07 21:54:36 -04:00
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.fuzzel.enable {
2024-03-28 19:52:15 -04:00
programs.fuzzel = {
enable = true;
settings = {
border = {
radius = 10;
width = 2;
};
2024-03-28 19:52:15 -04:00
main = {
2024-08-07 21:59:25 -04:00
font = "${cfg.theme.monospaceFont.name}:size=${toString cfg.theme.monospaceFont.size}";
icon-theme = "${config.gtk.iconTheme.name}";
2024-03-28 19:52:15 -04:00
layer = "overlay";
lines = 3;
2024-08-07 21:54:36 -04:00
terminal = lib.getExe cfg.defaultApps.terminal;
2024-06-03 22:10:25 -04:00
width = 36;
};
2024-03-28 19:52:15 -04:00
colors = {
2024-08-07 21:54:36 -04:00
background = "${cfg.theme.colors.background}CC";
border = "${cfg.theme.colors.primary}EE";
selection = "${cfg.theme.colors.background}FF";
selection-match = "${cfg.theme.colors.primary}FF";
selection-text = "${cfg.theme.colors.secondary}FF";
text = "${cfg.theme.colors.text}FF";
2024-03-28 19:52:15 -04:00
};
};
};
};
}