bspwm: use mkTarget

This commit is contained in:
awwpotato 2025-05-21 14:06:13 -07:00
parent 02f3d00467
commit e31bca3ee1
No known key found for this signature in database

View file

@ -1,15 +1,16 @@
{ config, lib, ... }:
{
options.stylix.targets.bspwm.enable =
config.lib.stylix.mkEnableTarget "bspwm" true;
{ mkTarget, ... }:
mkTarget {
name = "bspwm";
humanName = "bspwm";
config = lib.mkIf (config.stylix.enable && config.stylix.targets.bspwm.enable) {
xsession.windowManager.bspwm.settings =
with config.lib.stylix.colors.withHashtag; {
configElements =
{ colors }:
{
xsession.windowManager.bspwm.settings = with colors.withHashtag; {
normal_border_color = base03;
active_border_color = base0C;
focused_border_color = base0D;
presel_feedback_color = base00;
};
};
};
}