Skip to content

Commit

Permalink
jankyborders: init
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Feb 7, 2025
1 parent d513f59 commit 3ae65cb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/jankyborders/darwin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ config, lib, ... }:
let
inherit (config.lib.stylix) colors;
opacity = builtins.toString (
builtins.ceil (config.stylix.opacity.desktop * 100)
);
mkColor = color: "0x${opacity}${color}";
in
{
options.stylix.targets.jankyborders.enable =
config.lib.stylix.mkEnableTarget "JankyBorders" true;

config =
lib.mkIf (config.stylix.enable && config.stylix.targets.jankyborders.enable)
{
services.jankyborders = {
active_color = mkColor colors.base0D;
inactive_border = mkColor colors.base03;
};
};
}

0 comments on commit 3ae65cb

Please sign in to comment.