2023-12-10 19:45:28 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
2023-06-09 13:17:34 +02:00
|
|
|
{
|
2023-12-02 00:46:56 +01:00
|
|
|
imports = [ ../global.nix ./hyprpaper.nix ];
|
2023-05-24 03:17:09 +02:00
|
|
|
|
2023-12-10 19:45:28 +01: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;
|
|
|
|
noise = 0.05;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# }}}
|
|
|
|
# {{{ Monitors
|
|
|
|
# Configure monitor properties
|
|
|
|
monitor = lib.forEach config.satellite.monitors (m:
|
|
|
|
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
|
|
|
|
workspace = lib.lists.concatMap
|
|
|
|
(m: lib.lists.optional (m.workspace != null) "${m.name},${m.workspace}")
|
|
|
|
config.satellite.monitors;
|
|
|
|
# }}}
|
|
|
|
};
|
2023-06-09 13:17:34 +02:00
|
|
|
};
|
2023-05-24 03:17:09 +02:00
|
|
|
}
|
2024-05-01 17:51:24 +02:00
|
|
|
|