stylix/modules/hyprland/hm.nix
Airradda 7a7987c782
Fix group variable changes in Hyprland module (#169)
This resolve the issues introduced in hyprwm/Hyprland#3522, which
moved group variables out of general and into their own section.
2023-10-28 14:27:10 +01:00

29 lines
722 B
Nix

{ 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;
}