2023-01-30 22:56:57 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with config.lib.stylix.colors.withHashtag;
|
|
|
|
with config.stylix.fonts;
|
2023-05-18 15:00:50 -04:00
|
|
|
let
|
|
|
|
dunstOpacity = lib.toHexString ((((builtins.ceil (config.stylix.opacity.popups * 100)) * 255) / 100));
|
|
|
|
in {
|
2023-01-30 22:56:57 +01:00
|
|
|
options.stylix.targets.dunst.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "Dunst" true;
|
|
|
|
|
2024-06-10 11:52:47 +02:00
|
|
|
config = lib.mkIf (config.stylix.enable && config.stylix.targets.dunst.enable) {
|
2023-01-30 22:56:57 +01:00
|
|
|
services.dunst.settings = {
|
|
|
|
global = {
|
|
|
|
separator_color = base02;
|
2023-03-19 19:39:32 +01:00
|
|
|
font = "${sansSerif.name} ${toString sizes.popups}";
|
2023-01-30 22:56:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
urgency_low = {
|
2023-05-18 15:00:50 -04:00
|
|
|
background = base01 + dunstOpacity;
|
2023-01-30 22:56:57 +01:00
|
|
|
foreground = base05;
|
|
|
|
frame_color = base0B;
|
|
|
|
};
|
|
|
|
|
|
|
|
urgency_normal = {
|
2023-05-18 15:00:50 -04:00
|
|
|
background = base01 + dunstOpacity;
|
2023-01-30 22:56:57 +01:00
|
|
|
foreground = base05;
|
|
|
|
frame_color = base0E;
|
|
|
|
};
|
|
|
|
|
|
|
|
urgency_critical = {
|
2023-05-18 15:00:50 -04:00
|
|
|
background = base01 + dunstOpacity;
|
2023-01-30 22:56:57 +01:00
|
|
|
foreground = base05;
|
|
|
|
frame_color = base08;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|