31 lines
933 B
Nix
Raw Normal View History

2022-01-29 00:41:41 +03:00
{ pkgs, config, ... }: {
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 =
[ "PATH=${pkgs.lib.makeBinPath [ pkgs.bash pkgs.mpv ]}" ];
};
2023-03-27 20:57:06 +03:00
Install = rec {
2023-01-26 00:36:27 +03:00
After = [ "hyprland-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;
2022-08-05 21:10:22 +03:00
backgroundColor = "#${theme.base00-hex}AA";
2022-01-29 00:41:41 +03:00
textColor = "#${theme.base05-hex}";
2022-08-05 21:10:22 +03:00
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
}