idk I'm lazy

This commit is contained in:
KoenDR06 2026-02-10 21:25:25 +01:00
parent dfcea20497
commit 27d84c3a50
7 changed files with 79 additions and 13 deletions

View 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}
'';
};
}

View file

@ -16,6 +16,11 @@ in {
type = types.int; type = types.int;
default = 11; default = 11;
}; };
opacity = mkOption {
type = types.number;
default = 0.5;
};
}; };
}; };
@ -24,7 +29,7 @@ in {
enable_audio_bell no enable_audio_bell no
confirm_os_window_close 0 confirm_os_window_close 0
background_opacity 1.0 background_opacity ${toString cfg.opacity}
font_family family='CaskaydiaCove Nerd Font' postscript_name=CaskaydiaCoveNF-Light font_family family='CaskaydiaCove Nerd Font' postscript_name=CaskaydiaCoveNF-Light
bold_font family='CaskaydiaCove Nerd Font' style=SemiBold bold_font family='CaskaydiaCove Nerd Font' style=SemiBold

View file

@ -7,5 +7,6 @@
./.config/wofi/style.css.nix ./.config/wofi/style.css.nix
./.config/waybar/style.css.nix ./.config/waybar/style.css.nix
./.config/gtk/settings.ini.nix ./.config/gtk/settings.ini.nix
./.config/dunst/dunstrc.nix
]; ];
} }

View file

@ -61,6 +61,14 @@ in {
speed = 20; speed = 20;
curve = slowFade; curve = slowFade;
}; };
fadeLayers = {
speed = 1.5;
curve = linear;
};
fadeSwitch = {
speed = 3;
curve = easeOut;
};
windows = { windows = {
speed = 3; speed = 3;
@ -74,10 +82,6 @@ in {
style = "popin"; style = "popin";
}; };
fadeLayers = {
speed = 1.5;
curve = linear;
};
fadeOut = { fadeOut = {
speed = 10; speed = 10;
curve = linear; curve = linear;

View file

@ -44,6 +44,7 @@ in {
fuzzel # Launcher fuzzel # Launcher
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why) xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
catppuccin-cursors."${flavor}Dark" # Cursors catppuccin-cursors."${flavor}Dark" # Cursors
dunst # Notifications
]; ];
horseman.hardware.keyd.enable = true; horseman.hardware.keyd.enable = true;
@ -59,6 +60,7 @@ in {
"systemctl --user start hyprpolkitagent" "systemctl --user start hyprpolkitagent"
"waybar" "waybar"
"hyprctl setcursor catppuccin-${flavor}-dark-cursors 24" "hyprctl setcursor catppuccin-${flavor}-dark-cursors 24"
"dunst --startup_notification"
]; ];
env = [ env = [
@ -76,9 +78,6 @@ in {
"suppressevent maximize, class:.*" "suppressevent maximize, class:.*"
"nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0" "nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0"
"float, initialTitle:^Picture-in-Picture$"
"center, initialTitle:^Picture-in-Picture$"
"size 1280 720, initialTitle:^Picture-in-Picture$"
"opacity 1.0 override, initialTitle:^Picture-in-Picture$" "opacity 1.0 override, initialTitle:^Picture-in-Picture$"
"float, initialClass:CImg" "float, initialClass:CImg"
@ -105,7 +104,7 @@ in {
decoration = { decoration = {
rounding = 10; rounding = 10;
activeOpacity = 1.0; activeOpacity = 1.0;
inactiveOpacity = 0.9; inactiveOpacity = 0.7;
dimSpecial = 0.4; dimSpecial = 0.4;
@ -117,7 +116,7 @@ in {
blur = { blur = {
enabled = true; enabled = true;
size = 10; size = 5;
passes = 3; passes = 3;
}; };
}; };

View file

@ -119,9 +119,23 @@ in {
{ {
flags = []; flags = [];
mods = ["SUPER"]; mods = ["SUPER"];
key = "T"; key = "D";
dispatcher = "togglegroup"; dispatcher = "exec";
params = ""; params = "dunstctl close";
}
{
flags = [];
mods = ["SUPER" "SHIFT"];
key = "D";
dispatcher = "exec";
params = "dunstctl close-all";
}
{
flags = [];
mods = ["SUPER" "ALT"];
key = "D";
dispatcher = "exec";
params = "dunstctl history-pop";
} }
{ {

View file

@ -42,6 +42,7 @@ in {
horseman.dots = { horseman.dots = {
fuzzel.enable = true; fuzzel.enable = true;
waybar.enable = true; waybar.enable = true;
dunst.enable = true;
}; };
home-manager.users.${homeCfg.username} = { home-manager.users.${homeCfg.username} = {