This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
40
modules/home/stylix/targets/hyprland.nix
Normal file
40
modules/home/stylix/targets/hyprland.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.stylix;
|
||||
target = cfg.targets.hyprland;
|
||||
|
||||
inherit (lib)
|
||||
mkIf
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
in
|
||||
{
|
||||
options.stylix.targets.hyprland = {
|
||||
gaps = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = "Window gaps in pixels.";
|
||||
};
|
||||
radius = mkOption {
|
||||
type = types.int;
|
||||
default = 0;
|
||||
description = "Window corner radius in pixels.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable && target.enable) {
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
general = {
|
||||
gaps_in = target.gaps / 2;
|
||||
gaps_out = target.gaps;
|
||||
};
|
||||
decoration = {
|
||||
rounding = target.radius;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue