mirror of
https://github.com/danth/stylix
synced 2024-11-23 12:43:12 +00:00
c3c9f4784b
Co-authored-by: Daniel Thwaites <danthwaites30@btinternet.com>
27 lines
710 B
Nix
27 lines
710 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;
|
|
"col.group_border" = rgb base0D;
|
|
"col.group_border_active" = rgb base06;
|
|
"col.group_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;
|
|
}
|