2024-02-29 22:20:26 -05:00
|
|
|
# home.nix
|
2024-02-29 23:51:18 -05:00
|
|
|
{theme, ...}: {
|
|
|
|
|
wayland.windowManager.hyprland.settings = with theme.colors; {
|
2024-02-29 22:31:06 -05:00
|
|
|
exec-once = [
|
|
|
|
|
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
2024-03-01 01:20:06 -05:00
|
|
|
"pw-loopback -C \"alsa_input.pci-0000_0d_00.4.analog-stereo\""
|
2024-02-29 22:31:06 -05:00
|
|
|
];
|
|
|
|
|
|
2024-03-01 18:13:14 -05:00
|
|
|
"plugin:borders-plus-plus" = {
|
|
|
|
|
add_borders = 1;
|
|
|
|
|
|
2024-03-01 18:16:54 -05:00
|
|
|
"col.border_1" = "rgb(${muted})";
|
|
|
|
|
"col.border_2" = "rgb(${love})";
|
2024-03-01 18:13:14 -05:00
|
|
|
|
2024-03-01 18:19:27 -05:00
|
|
|
border_size_1 = 8;
|
2024-03-01 18:13:14 -05:00
|
|
|
|
|
|
|
|
natural_rounding = "yes";
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-29 22:31:06 -05:00
|
|
|
general = {
|
|
|
|
|
# gaps
|
|
|
|
|
gaps_in = 6;
|
|
|
|
|
gaps_out = 11;
|
|
|
|
|
|
|
|
|
|
# border thiccness
|
|
|
|
|
border_size = 2;
|
|
|
|
|
|
|
|
|
|
# whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
|
|
|
|
|
apply_sens_to_raw = 0;
|
2024-02-29 23:51:18 -05:00
|
|
|
|
|
|
|
|
# active border color
|
2024-02-29 23:55:36 -05:00
|
|
|
"col.active_border" = "rgb(${rose})";
|
2024-03-01 18:18:37 -05:00
|
|
|
"col.inactive_border" = "rgb(${love})";
|
2024-02-29 22:31:06 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
input = {
|
|
|
|
|
kb_layout = "us";
|
|
|
|
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
|
|
|
accel_profile = "flat";
|
|
|
|
|
force_no_accel = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
decoration = {
|
|
|
|
|
# fancy corners
|
2024-03-01 02:03:49 -05:00
|
|
|
rounding = 12;
|
2024-02-29 22:31:06 -05:00
|
|
|
# blur
|
|
|
|
|
blur = {
|
|
|
|
|
enabled = true;
|
|
|
|
|
size = 3;
|
2024-03-01 02:03:49 -05:00
|
|
|
passes = 6;
|
2024-02-29 22:31:06 -05:00
|
|
|
ignore_opacity = false;
|
|
|
|
|
new_optimizations = 1;
|
|
|
|
|
contrast = 0.7;
|
|
|
|
|
brightness = 0.8;
|
2024-02-29 22:20:26 -05:00
|
|
|
};
|
|
|
|
|
|
2024-02-29 22:31:06 -05:00
|
|
|
# shadow config
|
|
|
|
|
drop_shadow = "no";
|
|
|
|
|
shadow_range = 20;
|
|
|
|
|
shadow_render_power = 5;
|
|
|
|
|
"col.shadow" = "rgba(292c3cee)";
|
|
|
|
|
};
|
2024-02-29 22:20:26 -05:00
|
|
|
|
2024-02-29 23:55:36 -05:00
|
|
|
misc = {
|
|
|
|
|
# disable redundant renders
|
|
|
|
|
disable_splash_rendering = true;
|
|
|
|
|
force_default_wallpaper = 0;
|
|
|
|
|
disable_hyprland_logo = true;
|
|
|
|
|
|
|
|
|
|
vfr = true;
|
|
|
|
|
|
|
|
|
|
# window swallowing
|
|
|
|
|
enable_swallow = true; # hide windows that spawn other windows
|
|
|
|
|
swallow_regex = "^(foot)$";
|
|
|
|
|
|
|
|
|
|
# dpms
|
|
|
|
|
mouse_move_enables_dpms = true; # enable dpms on mouse/touchpad action
|
|
|
|
|
key_press_enables_dpms = true; # enable dpms on keyboard action
|
|
|
|
|
disable_autoreload = true; # autoreload is unnecessary on nixos, because the config is readonly anyway
|
|
|
|
|
};
|
|
|
|
|
|
2024-02-29 22:31:06 -05:00
|
|
|
xwayland = {
|
|
|
|
|
force_zero_scaling = true;
|
|
|
|
|
};
|
2024-02-29 22:20:26 -05:00
|
|
|
|
2024-02-29 22:56:32 -05:00
|
|
|
monitor = ["DP-1,2560x1440@240,0x0,1" "HDMI-A-1,disable"];
|
2024-02-29 22:20:26 -05:00
|
|
|
};
|
|
|
|
|
}
|