idk I'm lazy
This commit is contained in:
parent
dfcea20497
commit
27d84c3a50
7 changed files with 79 additions and 13 deletions
42
dots/.config/dunst/dunstrc.nix
Normal file
42
dots/.config/dunst/dunstrc.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption mkOption types catppuccin;
|
||||
cfg = config.horseman.dots.dunst;
|
||||
username = config.horseman.username;
|
||||
colors = config.horseman.catppuccin.colors;
|
||||
in {
|
||||
options = {
|
||||
horseman.dots.dunst = {
|
||||
enable = mkEnableOption "~/.config/dunst/dunstrc";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username}.xdg.configFile."dunst/dunstrc".text = ''
|
||||
[global]
|
||||
origin = top-left
|
||||
offset = (0, -46)
|
||||
font = CaskaydiaCove Nerd Font 12
|
||||
corner_radius = 10
|
||||
gap_size = 3
|
||||
|
||||
mouse_right_click = context
|
||||
|
||||
background = ${catppuccin.toHex colors.base}
|
||||
foreground = ${catppuccin.toHex colors.text}
|
||||
frame_color = ${catppuccin.toHex colors.blue}
|
||||
highlight = ${catppuccin.toHex colors.blue}
|
||||
frame_width = 2
|
||||
|
||||
[urgency_low]
|
||||
frame_color = ${catppuccin.toHex colors.overlay0}
|
||||
|
||||
[urgency_critical]
|
||||
frame_color = ${catppuccin.toHex colors.red}
|
||||
highlight = ${catppuccin.toHex colors.red}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -16,6 +16,11 @@ in {
|
|||
type = types.int;
|
||||
default = 11;
|
||||
};
|
||||
|
||||
opacity = mkOption {
|
||||
type = types.number;
|
||||
default = 0.5;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -24,7 +29,7 @@ in {
|
|||
enable_audio_bell no
|
||||
confirm_os_window_close 0
|
||||
|
||||
background_opacity 1.0
|
||||
background_opacity ${toString cfg.opacity}
|
||||
|
||||
font_family family='CaskaydiaCove Nerd Font' postscript_name=CaskaydiaCoveNF-Light
|
||||
bold_font family='CaskaydiaCove Nerd Font' style=SemiBold
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue