nixos-config/profiles/workspace/mako.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-13 15:24:22 +04:00
{ pkgs, config, ... }: {
home-manager.users.balsoft = {
2021-09-23 21:13:38 +04:00
systemd.user.services.mako = {
Service = {
ExecStart = "${pkgs.mako}/bin/mako";
};
Install = {
After = [ "sway-session.target" ];
WantedBy = [ "sway-session.target" ];
};
};
2021-12-23 22:23:03 +04:00
programs.mako = with (pkgs.my-lib.thmHash config.themes.colors); {
2021-01-13 15:24:22 +04:00
enable = true;
layer = "overlay";
2021-06-10 19:58:51 +04:00
font = with config.themes.fonts; "${main.family} ${toString main.size}";
2021-01-13 15:24:22 +04:00
width = 500;
height = 80;
defaultTimeout = 10000;
maxVisible = 10;
2021-06-10 19:58:51 +04:00
backgroundColor = "${base00}AA";
textColor = base05;
borderColor = "${base0D}AA";
progressColor = "over ${base0B}";
2021-02-25 20:32:13 +04:00
iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark";
maxIconSize = 24;
2022-04-13 13:47:02 +04:00
extraConfig = ''
[mode=do-not-disturb]
invisible=1
[mode=do-not-disturb summary="Do not disturb: on"]
invisible=0
[mode=concentrate]
invisible=1
[mode=concentrate urgency=critical]
invisible=0
[mode=concentrate summary="Concentrate mode: on"]
invisible=0
'';
2021-01-13 15:24:22 +04:00
};
};
2020-02-17 17:00:59 +04:00
}