1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 08:23:52 +00:00
ultima/modules/home/wm/hyprland/plugins.nix
2024-11-21 18:24:15 +09:00

42 lines
1.1 KiB
Nix

{ pkgs, inputs, ... }: {
wayland.windowManager.hyprland = {
plugins = with inputs; [ hyprfocus.packages.${pkgs.system}.default ];
settings.plugin = {
# FOCUS
hyprfocus = let
in_bezier = "realsmooth";
out_bezier = "realsmooth";
in {
enabled = "yes";
animate_floating = "yes";
animate_workspacechange = "yes";
focus_animation = "focus";
# ANIMATIONS STYLE
bezier = [
"bezIn, 0.5, 0.0, 1.0, 0.5 "
"bezOut, 0.0, 0.5, 0.5, 1.0 "
"overshot, 0.05, 0.9, 0.1, 1.05 "
"smoothOut, 0.36, 0, 0.66, -0.56"
"smoothIn, 0.25, 1, 0.5, 1 "
"realsmooth, 0.28, 0.29, .69, 1.08 "
];
# FLASH MODE
flash = {
inherit in_bezier out_bezier;
flash_opacity = 0.95;
in_speed = 0.5;
out_speed = 3;
};
# SHRINK MODE
shrink = {
inherit in_bezier out_bezier;
shrink_percentage = 0.95;
in_speed = 1;
out_speed = 2;
};
};
};
};
}