1
Fork 0
satellite/home/features/wayland/hyprland/default.nix

62 lines
1.5 KiB
Nix
Raw Normal View History

2023-06-09 13:17:34 +02:00
{
2024-08-05 20:31:34 +02:00
pkgs,
lib,
config,
...
}:
{
imports = [
../global.nix
./hyprpaper.nix
];
home.packages = [
pkgs.gtk3 # Contains gtk-launch
];
2023-05-24 03:17:09 +02:00
stylix.targets.hyprland.enable = true;
2023-05-24 03:17:09 +02:00
wayland.windowManager.hyprland = {
enable = true;
2023-12-10 12:55:54 +01:00
package = pkgs.hyprland;
2024-05-01 17:51:24 +02:00
extraConfig = builtins.readFile ./hyprland.conf;
settings = {
# {{{ Decoration
decoration = {
rounding = config.satellite.theming.rounding.radius;
active_opacity = 1;
inactive_opacity = 1;
blur = {
enabled = config.satellite.theming.blur.enable;
ignore_opacity = true;
xray = true;
size = config.satellite.theming.blur.size;
passes = config.satellite.theming.blur.passes;
contrast = config.satellite.theming.blur.contrast;
brightness = config.satellite.theming.blur.brightness;
2024-08-05 20:31:34 +02:00
noise = 5.0e-2;
2024-05-01 17:51:24 +02:00
};
};
# }}}
# {{{ Monitors
# Configure monitor properties
2024-08-05 20:31:34 +02:00
monitor = lib.forEach config.satellite.monitors (
m:
2024-05-01 17:51:24 +02:00
lib.concatStringsSep "," [
m.name
"${toString m.width}x${toString m.height}@${toString m.refreshRate}"
"${toString m.x}x${toString m.y}"
"1"
]
);
# Map monitors to workspaces
2024-08-05 20:31:34 +02:00
workspace = lib.lists.concatMap (
m: lib.lists.optional (m.workspace != null) "${m.name},${m.workspace}"
) config.satellite.monitors;
2024-05-01 17:51:24 +02:00
# }}}
};
2023-06-09 13:17:34 +02:00
};
2023-05-24 03:17:09 +02:00
}