{
  lib,
  pkgs,
  config,
  ...
}:
with lib; let
  cfg = config.wm.yabai;
in {
  config = mkIf cfg.enable {
    services = {
      yabai = {
        enable = true;
        extraConfig = builtins.readFile ./yabairc;
        enableScriptingAddition = true;
        package = pkgs.unstable.yabai;
      };

      skhd = {
        enable = true;
        skhdConfig = builtins.readFile ./skhdrc;
      };
    };
  };
}
