31 lines
942 B
Nix
Raw Normal View History

2024-07-07 17:09:23 +03:00
{ pkgs, config, lib, ... }: {
2022-12-10 22:34:39 +03:00
home-manager.users.${config.mainuser} = {
2022-01-29 00:41:41 +03:00
systemd.user.services.mako = {
2023-03-27 15:50:40 +03:00
Service = {
ExecStart = "${pkgs.mako}/bin/mako";
Environment =
2024-07-07 17:09:23 +03:00
[ "PATH=${lib.makeBinPath [ pkgs.bash pkgs.mpv ]}" ];
2023-03-27 15:50:40 +03:00
};
2023-03-27 20:57:06 +03:00
Install = rec {
2024-12-28 11:43:02 +03:00
After = [ "graphical-session.target" ];
2023-03-27 20:57:06 +03:00
WantedBy = After;
2022-01-29 00:41:41 +03:00
};
};
2023-03-14 22:56:00 +03:00
services.mako = with config.lib.base16; {
2022-01-29 00:41:41 +03:00
enable = true;
layer = "overlay";
font = "${theme.fonts.mono.family} ${theme.fontSizes.normal.str}";
width = 500;
height = 80;
defaultTimeout = 10000;
maxVisible = 10;
2024-06-18 04:49:58 +03:00
# backgroundColor = "#${theme.base00-hex}AA";
# textColor = "#${theme.base05-hex}";
# borderColor = "#${theme.base0D-hex}AA";
# progressColor = "over #${theme.base0B-hex}";
2022-01-29 00:41:41 +03:00
iconPath = "${theme.iconPackage}/share/icons/${theme.iconTheme}";
maxIconSize = 24;
};
};
2022-07-06 00:14:26 +03:00
}