# Set the Window Size and Layout of Juno by a Configuration File

**URL:** <https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020>\
**Category:** Juno\
**Tags:** question, juno\
**Created:** [April 22, 2020, 11:17am UTC](https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020 "2020-04-22T11:17:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [April 22, 2020, 11:17am UTC](https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020/1 "2020-04-22T11:17:23Z")

</div>

I would like to set the size and the layout (Panes, etc…) of Juno by a configuration.

At the moment Juno size matches the last size used yet I want each time I start it to have a predefined size.

I also would like to set a default layout (Which Tabs / Panes are open).  
Is there a way to do so?

**Remark 01** : This was answered on Slack channel by @pfitzseb, It is written here in order to preserve the knowledge.

**Remark 02** : This is about Juno as packaged in JuliaPro `1.4.x`.

---

<div class="post-metadata">

**Author:** ![RoyiAvital](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/royiavital/32/571_2.png) [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Post date:** [April 22, 2020, 11:28am UTC](https://discourse.julialang.org/t/set-the-window-size-and-layout-of-juno-by-a-configuration-file/38020/2 "2020-04-22T11:28:23Z")

</div>

The window configuration of `Juno` can be set by the `init.coffee` file on `.atom` folder in the installation package.

By default, for Julia Pro (At the time of writing JuliaPro `1.4.x`), the file contains:

```julia-auto
if atom.config.get('julia-client.useStandardLayout')
  atom.commands.dispatch(atom.views.getView(atom.workspace.getActivePane()), 'julia:standard-layout')

```

### Window Dimensions

In order to set the dimensions and location of the window add the lines:

```julia-auto
remote = require('remote')
remote.getCurrentWindow().setBounds({ x: 10, y: 10, width: 1600, height: 1350 })

```

Where `x` and `y` are the location of the top left corner of the window in a coordinate system where `(0, 0)` is the top left corner of the screen.

### Default Layout

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/e/7e5defad34448b019b156572b63d35e40823700c.png)

Basically the `Julia Client` extension can set the default Layout in its settings.  
In order to configure it in file one could use `config.cson`:

```julia-auto
"julia-client":
    uiOptions:
      layouts:
        openDefaultPanesOnStartUp: true

```
