#Hi, I tried setting up the Komorebi bar with my two monitors, but I couldn’t get it to work

1 messages · Page 1 of 1 (latest)

misty gust
#

it would help if you share your configs as well.

limpid cedar
#

Now they are set to the default values, since I fully uninstalled and reinstalled it. Which one specifically would be useful to you?

fading valley
#

If you have reset everything, follow the multi-monitor guide from scratch

limpid cedar
#

It's still showing the bar only on Monitor 1 (secondary).

{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json",
"app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
"window_hiding_behaviour": "Cloak",
"cross_monitor_move_behaviour": "Insert",
"default_workspace_padding": 20,
"default_container_padding": 20,
"border": true,
"border_width": 8,
"border_offset": -1,
"theme": {
"palette": "Base16",
"name": "Ashes",
"unfocused_border": "Base03",
"bar_accent": "Base0D"
},
"monitors": [
// monitor 1, index 0
{
"workspaces": [
{
"name": "I",
"layout": "BSP"
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
},
{
"name": "VI",
"layout": "Grid"
},
{
"name": "VII",
"layout": "RightMainVerticalStack"
}
]
},
// monitor 2, index 1
{
"workspaces": [
{
"name": "I",
"layout": "BSP"
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
},
{
"name": "VI",
"layout": "Grid"
},
{
"name": "VII",
"layout": "RightMainVerticalStack"
}
]
}
]
}

fading valley
#

You haven't followed the guide to set up the display index preferences from the looks of the config you posted

limpid cedar
#

I don't understand. "Let's say you have more monitors" — but I don't have more than the two I mentioned.

#

I thought that was enough for Komorebi to detect my two monitors and show the bar on both.

fading valley
#

Windows never guarantees the order of monitors

#

So you have to specify which config block should apply to which monitor based on a hardware ID

limpid cedar
undone sandBOT
#

GG @limpid cedar, you just advanced to level 1!

limpid cedar
#

Any ideas?

fading valley
#

Yeah, this is a JSON validation error - you can see the red squiggly line at line 52

#

Throw your config file into a JSON validator to get more detailed feedback

#

komorebic check also provides feedback

limpid cedar
#

I fixed it, but when I open the bar again, it removes the display_index_preferences from the komorebi.json file.

#

Therefore, what’s the best way to edit that JSON? Should I have Komorebi and the bar processes terminated? One of them? Both? If so, what’s the best way to start both afterward? Running komorebi start only opens Komorebi, not the bar.

#

Sorry, I’m really new to this!

fading valley
#

What commands are you running?

#
❯ komorebic quickstart --help
Gather example configurations for a new-user quickstart

Usage: komorebic.exe quickstart

Options:
  -h, --help  Print help

This command only needs to be run once when you are first installing ^

#

If you keep running it, it will keep replacing your configuration file with the example configuration file

limpid cedar
#

Ok, so once I’ve modified the JSON file, what’s the best way to run Komorebi and the bar again?

fading valley
#

komorebic start --bar

#

You can add --whkd too if it's not already running

limpid cedar
#

{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.37/schema.json",
"app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
"window_hiding_behaviour": "Cloak",
"cross_monitor_move_behaviour": "Insert",
"default_workspace_padding": 20,
"default_container_padding": 20,
"border": true,
"border_width": 8,
"border_offset": -1,
"theme": {
"palette": "Base16",
"name": "Ashes",
"unfocused_border": "Base03",
"bar_accent": "Base0D"
},
"monitors": [
// monitor 1, index 0
{
"workspaces": [
{
"name": "I",
"layout": "BSP"
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
},
{
"name": "VI",
"layout": "Grid"
},
{
"name": "VII",
"layout": "RightMainVerticalStack"
}
]
},
// monitor 2, index 1
{
"workspaces": [
{
"name": "I",
"layout": "BSP"
},
{
"name": "II",
"layout": "VerticalStack"
},
{
"name": "III",
"layout": "HorizontalStack"
},
{
"name": "IV",
"layout": "UltrawideVerticalStack"
},
{
"name": "V",
"layout": "Rows"
},
{
"name": "VI",
"layout": "Grid"
},
{
"name": "VII",
"layout": "RightMainVerticalStack"
}
]
}
],
"display_index_preferences": {
"0": "CNC8211F4N",
"1": "UEP174021562"
},
"bar_configurations": [
"C:/Users/Rafael/komorebi.bar.monitor1.json",
"C:/Users/Rafael/komorebi.bar.monitor2.json"
]
}

#

Still can't see the bar on my other monitor

#

the code is fine according to the check command

#

and those json files are in that folder and those are their names

#

I did it!

#

the index was the same on both monitor json files 😄

#

I am so dumb, sorry

fading valley
#

I'm glad you got it! You have officially leveled up 🫡

limpid cedar
#

This is the first time I deal with json files by myself

#

I am just a regular IT guy 😄