stylix/modules/hyprland/hm.nix

30 lines
722 B
Nix
Raw Normal View History

{ config, lib, ... }:
with config.lib.stylix.colors;
let
rgb = color: "rgb(${color})";
rgba = color: alpha: "rgba(${color}${alpha})";
settings = {
decoration."col.shadow" = rgba base00 "99";
general = {
"col.active_border" = rgb base0A;
"col.inactive_border" = rgb base03;
};
group = {
"col.border_inactive" = rgb base0D;
"col.border_active" = rgb base06;
"col.border_locked_active" = rgb base06;
};
misc.background_color = rgb base00;
};
in {
options.stylix.targets.hyprland.enable =
config.lib.stylix.mkEnableTarget "Hyprland" true;
config.wayland.windowManager.hyprland.settings =
lib.mkIf config.stylix.targets.hyprland.enable settings;
}