This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/hyprland/hyprland-graphics.nix

71 lines
1.5 KiB
Nix
Raw Normal View History

2024-03-24 20:51:24 +01:00
{ config, ... }:
{
# hyprland general config
wayland.windowManager.hyprland.settings = {
monitor = [
# main monitors
"eDP-1, 1920x1200@60, 760x1440, 1"
"HDMI-A-1, 1920x1080@60, 0x0, 1"
", preferred, 0x0, 1"
];
2024-03-24 20:51:24 +01:00
# unscale xwayland
xwayland = {
force_zero_scaling = true;
};
2024-03-24 20:51:24 +01:00
# animation section
animations = {
enabled = true;
bezier = [
"fade, 0.05, 1, 0.1, 1"
"smoothOut, 0.36, 0, 0.66, 1"
"smoothIn, 0.25, 1, 0.5, 1"
"liner, 1, 1, 1, 1"
];
animation = [
"windows, 1, 3, smoothIn"
"windowsOut, 1, 3, smoothOut"
"windowsMove, 1, 3, default"
"border, 1, 10, default"
"borderangle, 1, 45, liner, loop"
"fade, 1, 5, smoothIn"
"fadeDim, 1, 5, smoothIn"
"workspaces, 1, 8, fade"
];
};
2024-03-24 20:51:24 +01:00
# decoration section
decoration = {
2024-03-24 20:51:24 +01:00
# blur
blur = {
enabled = true;
size = "2";
passes = "2";
};
2024-03-24 20:51:24 +01:00
# windows
rounding = "16";
2024-03-24 20:51:24 +01:00
# shadows
drop_shadow = true;
shadow_offset = "2 2";
shadow_range = "8";
shadow_render_power = "2";
shadow_ignore_window = true;
"col.shadow" = "0x66000000";
2024-03-24 20:51:24 +01:00
# opacity
active_opacity = "1.0";
inactive_opacity = "1.0";
};
};
2024-03-24 20:51:24 +01:00
}