dotfiles/home/modules/gui/desktop/hypr/dunst/config/settings.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

2025-01-31 01:49:36 -06:00
{
flake,
config,
...
}:
2025-01-18 03:50:54 -06:00
let
inherit (flake.config.aesthetics.themes)
2025-01-31 01:49:36 -06:00
currentTheme
2025-01-18 03:50:54 -06:00
palettes
fonts
2025-01-08 19:06:14 -06:00
;
2025-01-18 03:50:54 -06:00
2025-01-31 01:49:36 -06:00
inherit (flake.config.people) user0 user1 user2;
user = config.home.username;
themeLogic =
if user == user0 then
currentTheme.theme0
else if user == user1 then
currentTheme.theme1
else if user == user2 then
currentTheme.theme2
else
currentTheme.theme0;
el = palettes.${themeLogic}.colours;
2025-01-18 03:50:54 -06:00
2025-01-08 19:06:14 -06:00
makeColor = c: "#" + c;
2025-01-18 03:50:54 -06:00
in
{
2025-01-08 19:06:14 -06:00
global = {
font = "${fonts.names.name0} ${builtins.toString fonts.sizes.popups.size0}";
2025-01-18 03:50:54 -06:00
background = makeColor el.base01;
frame_color = makeColor el.base0E;
foreground = makeColor el.base05;
2025-01-08 19:06:14 -06:00
corner_radius = 10;
fade_in_duration = 1000;
frame = 10000;
frame_width = 1;
icon_corner_radius = 10;
monitor = 1;
offset = "20x20";
origin = "bottom-right";
progress_bar_corner_radius = 4;
timeout = 10;
transparecncy = true;
};
urgency_critical = {
2025-01-18 03:50:54 -06:00
frame_color = makeColor el.base09;
2025-01-08 19:06:14 -06:00
timeout = 0;
};
2025-02-01 00:26:39 -06:00
skip-rule = {
appname = "flameshot";
skip_display = true;
};
2025-01-08 19:06:14 -06:00
}