mirror of
https://github.com/danth/stylix
synced 2024-11-29 23:50:23 +00:00
37 lines
935 B
Nix
37 lines
935 B
Nix
{ config, lib, ... }:
|
|
|
|
with config.lib.stylix.colors.withHashtag;
|
|
with config.stylix.fonts;
|
|
let
|
|
dunstOpacity = lib.toHexString ((((builtins.ceil (config.stylix.opacity.popups * 100)) * 255) / 100));
|
|
in {
|
|
options.stylix.targets.dunst.enable =
|
|
config.lib.stylix.mkEnableTarget "Dunst" true;
|
|
|
|
config = lib.mkIf config.stylix.targets.dunst.enable {
|
|
services.dunst.settings = {
|
|
global = {
|
|
separator_color = base02;
|
|
font = "${sansSerif.name} ${toString sizes.popups}";
|
|
};
|
|
|
|
urgency_low = {
|
|
background = base01 + dunstOpacity;
|
|
foreground = base05;
|
|
frame_color = base0B;
|
|
};
|
|
|
|
urgency_normal = {
|
|
background = base01 + dunstOpacity;
|
|
foreground = base05;
|
|
frame_color = base0E;
|
|
};
|
|
|
|
urgency_critical = {
|
|
background = base01 + dunstOpacity;
|
|
foreground = base05;
|
|
frame_color = base08;
|
|
};
|
|
};
|
|
};
|
|
}
|