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 = {
|
2023-01-23 20:35:45 +04:00
|
|
|
Service = {
|
|
|
|
ExecStart = "${pkgs.mako}/bin/mako";
|
|
|
|
Environment =
|
|
|
|
[ "PATH=${pkgs.lib.makeBinPath [ pkgs.bash pkgs.mpv ]}" ];
|
|
|
|
};
|
2021-09-23 21:13:38 +04:00
|
|
|
Install = {
|
|
|
|
After = [ "sway-session.target" ];
|
|
|
|
WantedBy = [ "sway-session.target" ];
|
|
|
|
};
|
|
|
|
};
|
2023-03-24 14:28:04 +04:00
|
|
|
services.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;
|
2023-09-11 20:05:13 +04:00
|
|
|
height = 160;
|
2021-01-13 15:24:22 +04:00
|
|
|
defaultTimeout = 10000;
|
|
|
|
maxVisible = 10;
|
2021-06-10 19:58:51 +04:00
|
|
|
backgroundColor = "${base00}AA";
|
|
|
|
textColor = base05;
|
|
|
|
borderColor = "${base0D}AA";
|
|
|
|
progressColor = "over ${base0B}";
|
2023-02-16 18:51:34 +04:00
|
|
|
iconPath = "${pkgs.breeze-icons}/share/icons/breeze-dark";
|
2021-02-25 20:32:13 +04:00
|
|
|
maxIconSize = 24;
|
2022-04-28 18:49:47 +04:00
|
|
|
extraConfig = let
|
|
|
|
play = sound:
|
2023-01-23 20:35:45 +04:00
|
|
|
"mpv ${pkgs.sound-theme-freedesktop}/share/sounds/freedesktop/stereo/${sound}.oga";
|
2022-04-28 18:49:47 +04:00
|
|
|
in ''
|
2023-08-14 17:26:14 +04:00
|
|
|
[urgency=high]
|
|
|
|
border-color=${base09}AA
|
|
|
|
[urgency=critical]
|
|
|
|
border-color=${base09}AA
|
2022-04-28 18:49:47 +04:00
|
|
|
on-notify=exec ${play "message"}
|
|
|
|
[app-name=yubikey-touch-detector]
|
|
|
|
on-notify=exec ${play "service-login"}
|
|
|
|
[app-name=command_complete summary~="✘.*"]
|
|
|
|
on-notify=exec ${play "dialog-warning"}
|
|
|
|
[app-name=command_complete summary~="✓.*"]
|
|
|
|
on-notify=exec ${play "bell"}
|
|
|
|
[category=osd]
|
|
|
|
on-notify=none
|
2022-04-13 13:47:02 +04:00
|
|
|
[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-05-12 21:59:15 +04:00
|
|
|
};
|
2020-02-17 17:00:59 +04:00
|
|
|
}
|