2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.services.mako;
|
|
|
|
in {
|
|
|
|
options.custom.services.mako.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
# https://github.com/emersion/mako
|
|
|
|
# FIXME: Cairo subpixel rendering; WL_OUTPUT_SUBPIXEL_NONE?
|
|
|
|
# https://github.com/emersion/mako/issues/258
|
|
|
|
services.mako = {
|
|
|
|
enable = true;
|
|
|
|
borderRadius = 12;
|
|
|
|
borderSize = 2;
|
|
|
|
defaultTimeout = 5 * 1000; # 5 seconds
|
|
|
|
width = 750;
|
|
|
|
anchor = "top-center";
|
|
|
|
backgroundColor = "#073642";
|
|
|
|
borderColor = "#002b36";
|
2024-09-21 15:47:31 +00:00
|
|
|
font = "${config.custom.font.sans-serif} 12";
|
2024-09-09 00:22:14 +00:00
|
|
|
layer = "overlay";
|
|
|
|
margin = "20";
|
|
|
|
padding = "10";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|