nixos-config/user/sway/mako.nix

66 lines
1.1 KiB
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}:
2023-02-25 17:12:53 -03:00
let
2024-06-05 01:18:48 -03:00
inherit (config.my)
key
accent
font
theme
;
2023-02-25 17:12:53 -03:00
inherit (theme) color;
in
{
2023-06-02 22:42:56 -03:00
services.mako = {
2023-02-25 17:12:53 -03:00
borderSize = 2;
padding = "5";
margin = "15";
layer = "overlay";
font = "${font.interface} ${toString font.size.small}";
textColor = color.txt;
backgroundColor = color.bg;
borderColor = accent.color;
progressColor = "over ${accent.color}88";
defaultTimeout = 10000;
extraConfig = ''
[app-name=volumesh]
default-timeout=5000
group-by=app-name
format=<b>%s</b>\n%b
'';
# # {{@@ header() @@}}
# # text
# # features
# icons=1
# markup=1
# actions=1
# default-timeout=10000
# # position
# layer=overlay
};
2023-06-02 22:42:56 -03:00
systemd.user.services.mako = lib.mkIf (config.services.mako.enable) {
2023-02-25 17:12:53 -03:00
Unit = {
Description = "Notification daemon";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.mako}/bin/mako";
Restart = "on-failure";
};
Install = {
WantedBy = [ "sway-session.target" ];
};
2023-02-25 17:12:53 -03:00
};
}