1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-10 13:33:51 +00:00
ultima/modules/home/wm/misc/mako/default.nix

46 lines
1 KiB
Nix
Raw Normal View History

2024-12-09 01:15:55 +00:00
{ x, lib, config, True, ... }:
2024-11-21 09:24:15 +00:00
with lib;
2024-12-09 01:15:55 +00:00
with x;
let
cfg = config.module.wm.misc.mako;
font = config.stylix.fonts;
2024-11-21 09:24:15 +00:00
in {
2024-12-09 01:15:55 +00:00
options = { module.wm.misc.mako = { enable = mkBool; }; };
2024-11-21 09:24:15 +00:00
config = mkIf cfg.enable {
services.mako = with config.lib.stylix.colors;
True // {
icons = true;
actions = false;
anchor = "top-right";
2024-12-09 01:15:55 +00:00
font = "${font.monospace.name}";
2024-11-21 09:24:15 +00:00
# DECORATION
borderRadius = 8;
borderSize = 2;
# COLORS
backgroundColor = "#${base01}";
borderColor = "#${base0E}";
textColor = "#${base06}";
extraConfig = ''
[urgency=low]
background-color=#${base00}
border-color=#${base0C}
text-color=#${base06}
[urgency=high]
background-color=#${base00}
border-color=#${base0C}
text-color=#${base06}
'';
# SETTINGS
layer = "overlay";
sort = "+time";
margin = "20, 20, 20";
maxVisible = 5;
defaultTimeout = 0;
};
};
}