nix/home-manager/common/desktops/hyprland/themes/stylix/hyprland-conf.nix
2024-01-03 23:41:42 +09:00

73 lines
2.1 KiB
Nix

{ theme, ... }: {
wayland.windowManager.hyprland = {
enable = true;
settings = {
layerrule = "blur, waybar";
xwayland.force_zero_scaling = true;
general = {
gaps_in = "8";
gaps_out = "8";
border_size = "2";
resize_on_border = "true";
extend_border_grab_area = "15";
layout = "dwindle";
};
input = {
kb_layout = "us";
follow_mouse = "1";
touchpad = {
natural_scroll = true;
disable_while_typing = true;
tap-to-click = true;
clickfinger_behavior = true;
drag_lock = true;
};
sensitivity = 0;
};
gestures = {
workspace_swipe = true;
workspace_swipe_fingers = 3;
workspace_swipe_numbered = false;
};
misc = {
disable_hyprland_logo = true;
mouse_move_enables_dpms = true;
key_press_enables_dpms = true;
};
decoration = {
rounding = 5;
active_opacity = 0.8;
inactive_opacity = 0.6;
fullscreen_opacity = 1.0;
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
blur = {
size = 8;
passes = 3;
ignore_opacity = true;
};
};
animations = {
# https://wiki.hyprland.org/Configuring/Animations/
enabled = true;
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = [
"windows,1,7,myBezier"
"windowsOut,1,7,default,popin 80%"
"border,1,10,default"
"borderangle,1,8,default"
"fade,1,7,default"
"workspaces,1,6,default"
];
};
dwindle = {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true;# you probably want this
no_gaps_when_only = 1;
};
master.new_is_master = true;
};
};
}