#hi ! Is there a way to not have double padding between each windows ?

1 messages · Page 1 of 1 (latest)

nova pike
#

The padding between the windows and the monitor borders is fine (red line on screenshot) but when I have two windows side by side the padding is added twice (yellow line in screenshot). Is there a way to always have the same padding ?

Additionally, I have one monitor in 2560x1440 and one in 3840x2160 and the padding is different on both monitors. I'm guessing it's because the padding setting is in pixels. Is there a way to assign a padding value per monitors (using the monitor id value given by the state command for example) ?

#

My current config :

jagged apex
#
Is there a way to assign a padding value per monitors (using the monitor id value given by the state command for example)

You can set a cotainer and workspace padding on a specific workspace
https://komorebi.lgug2z.com/schema#monitors_items_workspaces_items_container_padding

And if you want less padding between the windows, maybe try and reduce the container padding and add some workspace padding instead? Protip is to use
komorebic gui to easily find what values you like

astral meadow
#

Also if you want padding to be the same between monitor edges and between containers you want both workspace padding and container padding as half of the real padding you want. So if you want padding of 10 everywhere set "default_workspace_padding": 5 and "default_container_padding": 5

nova pike
#

thank you a lot for the answers !

jagged apex
#

Oh and also, if you have multiple monitors then you should have a "workspaces" for each monitor as such:

"monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP"
        },
        {
          "name": "II",
          "layout": "BSP"
        }
      ]
    },
    {
      "workspaces": [
        {
          "name": "III",
          "layout": "BSP"
        },
        {
          "name": "IV",
          "layout": "BSP"
        }
      ]
    }
  ]
#

Np 🙂

nova pike
#

should I add the display id in the config you've suggested ? Or is the first workspaces setup for left monitor and second one for right ?

jagged apex
#

It depends on what order the monitors get loaded in komorebi, but the first workspaces will get applied to the first monitor in komorebi and so on

nova pike
#

I see, thank you !

#

Perfect, it's working nicely with the updated config !

  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.25/schema.json",
  "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "border": false,
  "border_width": 4,
  "border_offset": -1,
  "border_colours": {
    "single": "#42a5f5",
    "stack": "#00a542",
    "monocle": "#ff3399",
    "unfocused": "#808080"
  },
  "stackbar": {
    "height": 40,
    "mode": "OnStack",
    "tabs": {
      "width": 300,
      "focused_text": "#00a542",
      "unfocused_text": "#b3b3b3",
      "background": "#141414"
    }
  },
"monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP",
          "workspace_padding": 8,
          "container_padding": 8
        }
      ]
    },
    {
      "workspaces": [
        {
          "name": "II",
          "layout": "VerticalStack",
          "workspace_padding": 5,
          "container_padding": 5
        }
      ]
    }
  ]
}```
jagged apex
#

Awesome!