mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
168 lines
4 KiB
Nix
168 lines
4 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./hyprland/rules.nix
|
|
./hyprland/keybinds.nix
|
|
./hyprland/execs.nix
|
|
./hyprlock.nix
|
|
];
|
|
|
|
home.packages = with pkgs; [
|
|
hyprshot
|
|
hyprpicker
|
|
wlr-randr
|
|
wl-clipboard
|
|
brightnessctl
|
|
xwayland
|
|
swww
|
|
grim
|
|
slurp
|
|
libnotify
|
|
];
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
configPackages = [config.wayland.windowManager.hyprland.package];
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-gtk
|
|
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
|
|
];
|
|
};
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
|
|
|
settings = {
|
|
monitor = [
|
|
",prefered,auto,1"
|
|
];
|
|
|
|
input = {
|
|
kb_layout = "us,fi";
|
|
kb_options = "caps:escape, grp:win_space_toggle";
|
|
repeat_delay = 250;
|
|
repeat_rate = 35;
|
|
follow_mouse = 1;
|
|
sensitivity = 0.1;
|
|
force_no_accel = true;
|
|
tablet = {
|
|
left_handed = true;
|
|
};
|
|
};
|
|
|
|
general = {
|
|
# Gaps and border
|
|
gaps_in = 8;
|
|
gaps_out = 8;
|
|
gaps_workspaces = 0;
|
|
border_size = 2;
|
|
|
|
# Fallback colours
|
|
"col.active_border" = "rgba(0DB7D4FF)";
|
|
"col.inactive_border" = "rgba(31313600)";
|
|
|
|
resize_on_border = true;
|
|
no_focus_fallback = true;
|
|
layout = "dwindle";
|
|
};
|
|
|
|
dwindle = {
|
|
preserve_split = true;
|
|
smart_split = false;
|
|
smart_resizing = false;
|
|
special_scale_factor = 0.9;
|
|
};
|
|
|
|
decoration = {
|
|
rounding = 15;
|
|
|
|
blur = {
|
|
enabled = true;
|
|
xray = true;
|
|
special = true;
|
|
new_optimizations = true;
|
|
size = 2;
|
|
passes = 2;
|
|
brightness = 1;
|
|
noise = 1.17e-2;
|
|
contrast = 1;
|
|
popups = true;
|
|
popups_ignorealpha = 0.6;
|
|
};
|
|
shadow = {
|
|
enabled = true;
|
|
ignore_window = true;
|
|
range = 20;
|
|
offset = "0 2";
|
|
render_power = 4;
|
|
color = "rgba(0000002A)";
|
|
};
|
|
|
|
# Dim
|
|
dim_inactive = false;
|
|
dim_strength = 0.1;
|
|
dim_special = 0;
|
|
};
|
|
|
|
animations = {
|
|
enabled = true;
|
|
bezier = [
|
|
"linear, 0, 0, 1, 1"
|
|
"md3_standard, 0.2, 0, 0, 1"
|
|
"md3_decel, 0.05, 0.7, 0.1, 1"
|
|
"md3_accel, 0.3, 0, 0.8, 0.15"
|
|
"overshot, 0.05, 0.9, 0.1, 1.1"
|
|
"crazyshot, 0.1, 1.5, 0.76, 0.92"
|
|
"menu_decel, 0.1, 1, 0, 1"
|
|
"menu_accel, 0.38, 0.04, 1, 0.07"
|
|
"hyprnostretch, 0.05, 0.9, 0.1, 1.0"
|
|
"fluent_decel, 0.1, 1, 0, 1"
|
|
"easeInOutCirc, 0.85, 0, 0.15, 1"
|
|
"easeOutCirc, 0, 0.55, 0.45, 1"
|
|
"easeOutExpo, 0.16, 1, 0.3, 1"
|
|
"softAcDecel, 0.26, 0.26, 0.15, 1"
|
|
"md2, 0.4, 0, 0.2, 1"
|
|
];
|
|
animation = [
|
|
"windows, 1, 3, md3_decel, popin 60%"
|
|
"windowsIn, 1, 3, md3_decel, popin 60%"
|
|
"windowsOut, 1, 3, md3_accel, popin 60%"
|
|
"border, 1, 10, default"
|
|
"fade, 1, 3, md3_decel"
|
|
"layersIn, 1, 3, menu_decel, slide"
|
|
"layersOut, 1, 1.6, menu_accel"
|
|
"fadeLayersIn, 1, 2, menu_decel"
|
|
"fadeLayersOut, 1, 4.5, menu_accel"
|
|
"workspaces, 1, 7, menu_decel, slide"
|
|
"specialWorkspace, 1, 3, md3_decel, slidevert"
|
|
];
|
|
};
|
|
|
|
misc = {
|
|
vfr = 1;
|
|
vrr = 2;
|
|
|
|
middle_click_paste = false;
|
|
focus_on_activate = true;
|
|
animate_manual_resizes = false;
|
|
animate_mouse_windowdragging = false;
|
|
enable_swallow = false;
|
|
swallow_regex = "(foot|kitty|allacritty|Alacritty)";
|
|
|
|
disable_hyprland_logo = true;
|
|
force_default_wallpaper = 0;
|
|
new_window_takes_over_fullscreen = 2;
|
|
allow_session_lock_restore = true;
|
|
|
|
initial_workspace_tracking = false;
|
|
};
|
|
};
|
|
};
|
|
}
|