[BUG]: Bar wont launch with configured command structure #556

Open
opened 2026-01-05 14:51:32 +01:00 by adam · 5 comments
Owner

Originally created by @merriick on GitHub (Jan 10, 2025).

Summary

Command Start-Process "komorebi-bar" '"--config" "$env:USERPROFILE\komorebi.bar.right.json"' -WindowStyle hidden will fail more often then succeed.
Command structure appears to not align with with documentation
-filepath and -argumentlist are missing and deploying the bar with the following launches the bars correctly.
Start-Process -filepath "Komorebi-bar.exe" -ArgumentList "--config","$env:USERPROFILE\komorebi.bar.right.json" -WindowStyle hidden

Version Information

OS Version: 10.0.22631 N/A Build 22631
Name : ConsoleHost
Version : 7.4.6
InstanceId : b28a0d55-73fc-4d02-a649-bff3909b7055
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-AU
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
komorebic 0.1.33
branch:master
commit_hash:b5a40a7a
build_time:2025-01-05 03:30:32 +00:00
build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "minimum_window_width": 0,
  "minimum_window_height": 0,
  "resize_delta": 50,
  "window_container_behaviour": "Create",
  "float_override": false,
  "cross_monitor_move_behaviour": "Insert",
  "cross_boundary_behaviour": "Monitor",
  "unmanaged_window_operation_behaviour": "Op",
  "mouse_follows_focus": true,
  "app_specific_configuration_path": "C:/Users/<REDACTED>/applications.json",
  "bar_configurations": ["$env:USERPROFILE/komorebi.bar.json", "$env:USERPROFILE/komorebi.bar.right.json"],
  "border_width": 0,
  "border_offset": -1,
  "border": true,
  "border_colours": {
    "single": {
      "r": 174,
      "g": 149,
      "b": 199
    },
    "stack": {
      "r": 149,
      "g": 199,
      "b": 174
    },
    "monocle": {
      "r": 199,
      "g": 149,
      "b": 149
    },
    "floating": {
      "r": 199,
      "g": 199,
      "b": 149
    },
    "unfocused": {
      "r": 116,
      "g": 124,
      "b": 132
    }
  },
  "border_style": "System",
  "border_implementation": "Komorebi",
  "transparency": false,
  "transparency_alpha": 200,
  "default_workspace_padding": 0,
  "default_container_padding": 0,
  "monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "II",
          "layout": "VerticalStack",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "III",
          "layout": "HorizontalStack",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "IV",
          "layout": "UltrawideVerticalStack",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "V",
          "layout": "Rows",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "VI",
          "layout": "Grid",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        },
        {
          "name": "VII",
          "layout": "RightMainVerticalStack",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        }
      ],
      "work_area_offset": {
        "left": 0,
        "top": 40,
        "right": 0,
        "bottom": 40
      },
      "window_based_work_area_offset_limit": 1
    },
    {
      "workspaces": [
        {
          "name": "Portrait",
          "layout": "HorizontalStack",
          "layout_rules": {},
          "apply_window_based_work_area_offset": true
        }
      ],
      "work_area_offset": {
        "left": 0,
        "top": 40,
        "right": 0,
        "bottom": 40
      },
      "window_based_work_area_offset_limit": 1
    }
  ],
  "window_hiding_behaviour": "Cloak",
  "monitor_index_preferences": {},
  "display_index_preferences": {
    "0": "DELD145-4&801d8a7&0&UID12615",
    "1": "DELD146-4&801d8a7&0&UID8263"
    },
  "slow_application_identifiers": [
    {
      "kind": "Exe",
      "id": "firefox.exe",
      "matching_strategy": "Equals"
    },
    {
      "kind": "Exe",
      "id": "zen.exe",
      "matching_strategy": "Equals"
    }
  ],
  "slow_application_compensation_time": 20,
  "remove_titlebar_applications": []
}

Hotkey Configuration

.shell pwsh.exe

Reload whkd configuration

alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd

alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o : komorebic reload-configuration

App shortcuts - these require shell to be pwsh / powershell

The apps will be focused if open, or launched if not open

alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }

alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }

alt + q : komorebic close
alt + m : komorebic minimize

Focus windows

alt + h : komorebic focus left
alt + j : komorebic focus down
alt + k : komorebic focus up
alt + l : komorebic focus right
alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [
alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ]

Move windows

alt + shift + h : komorebic move left
alt + shift + j : komorebic move down
alt + shift + k : komorebic move up
alt + shift + l : komorebic move right
alt + shift + return : komorebic promote

Stack windows

alt + left : komorebic stack left
alt + down : komorebic stack down
alt + up : komorebic stack up
alt + right : komorebic stack right
alt + oem_1 : komorebic unstack # oem_1 is ;
alt + oem_4 : komorebic cycle-stack previous # oem_4 is [
alt + oem_6 : komorebic cycle-stack next # oem_6 is ]

Resize

alt + oem_plus : komorebic resize-axis horizontal increase
alt + oem_minus : komorebic resize-axis horizontal decrease
alt + shift + oem_plus : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

Manipulate windows

alt + t : komorebic toggle-float
alt + shift + f : komorebic toggle-monocle

Window manager options

alt + shift + r : komorebic retile
alt + p : komorebic toggle-pause

Layouts

alt + x : komorebic flip-layout horizontal
alt + y : komorebic flip-layout vertical

Workspaces

alt + 1 : komorebic focus-workspace 0
alt + 2 : komorebic focus-workspace 1
alt + 3 : komorebic focus-workspace 2
alt + 4 : komorebic focus-workspace 3
alt + 5 : komorebic focus-workspace 4
alt + 6 : komorebic focus-workspace 5
alt + 7 : komorebic focus-workspace 6
alt + 8 : komorebic focus-workspace 7

Move windows across workspaces

alt + shift + 1 : komorebic move-to-workspace 0
alt + shift + 2 : komorebic move-to-workspace 1
alt + shift + 3 : komorebic move-to-workspace 2
alt + shift + 4 : komorebic move-to-workspace 3
alt + shift + 5 : komorebic move-to-workspace 4
alt + shift + 6 : komorebic move-to-workspace 5
alt + shift + 7 : komorebic move-to-workspace 6
alt + shift + 8 : komorebic move-to-workspace 7

Output of komorebic check

 Per318   ~   29ms⠀   komorebic check   pwsh   100  09:42:14 
No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Per318

Looking for configuration files in C:\Users\Per318

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\Per318.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

 Per318   ~   643ms⠀  

Originally created by @merriick on GitHub (Jan 10, 2025). ### Summary Command Start-Process "komorebi-bar" '"--config" "$env:USERPROFILE\komorebi.bar.right.json"' -WindowStyle hidden will fail more often then succeed. Command structure appears to not align with with documentation -filepath and -argumentlist are missing and deploying the bar with the following launches the bars correctly. Start-Process -filepath "Komorebi-bar.exe" -ArgumentList "--config","$env:USERPROFILE\komorebi.bar.right.json" -WindowStyle hidden ### Version Information OS Version: 10.0.22631 N/A Build 22631 Name : ConsoleHost Version : 7.4.6 InstanceId : b28a0d55-73fc-4d02-a649-bff3909b7055 UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-AU CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace komorebic 0.1.33 branch:master commit_hash:b5a40a7a build_time:2025-01-05 03:30:32 +00:00 build_env:rustc 1.83.0 (90b35a623 2024-11-26),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "minimum_window_width": 0, "minimum_window_height": 0, "resize_delta": 50, "window_container_behaviour": "Create", "float_override": false, "cross_monitor_move_behaviour": "Insert", "cross_boundary_behaviour": "Monitor", "unmanaged_window_operation_behaviour": "Op", "mouse_follows_focus": true, "app_specific_configuration_path": "C:/Users/<REDACTED>/applications.json", "bar_configurations": ["$env:USERPROFILE/komorebi.bar.json", "$env:USERPROFILE/komorebi.bar.right.json"], "border_width": 0, "border_offset": -1, "border": true, "border_colours": { "single": { "r": 174, "g": 149, "b": 199 }, "stack": { "r": 149, "g": 199, "b": 174 }, "monocle": { "r": 199, "g": 149, "b": 149 }, "floating": { "r": 199, "g": 199, "b": 149 }, "unfocused": { "r": 116, "g": 124, "b": 132 } }, "border_style": "System", "border_implementation": "Komorebi", "transparency": false, "transparency_alpha": 200, "default_workspace_padding": 0, "default_container_padding": 0, "monitors": [ { "workspaces": [ { "name": "I", "layout": "BSP", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "II", "layout": "VerticalStack", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "III", "layout": "HorizontalStack", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "IV", "layout": "UltrawideVerticalStack", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "V", "layout": "Rows", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "VI", "layout": "Grid", "layout_rules": {}, "apply_window_based_work_area_offset": true }, { "name": "VII", "layout": "RightMainVerticalStack", "layout_rules": {}, "apply_window_based_work_area_offset": true } ], "work_area_offset": { "left": 0, "top": 40, "right": 0, "bottom": 40 }, "window_based_work_area_offset_limit": 1 }, { "workspaces": [ { "name": "Portrait", "layout": "HorizontalStack", "layout_rules": {}, "apply_window_based_work_area_offset": true } ], "work_area_offset": { "left": 0, "top": 40, "right": 0, "bottom": 40 }, "window_based_work_area_offset_limit": 1 } ], "window_hiding_behaviour": "Cloak", "monitor_index_preferences": {}, "display_index_preferences": { "0": "DELD145-4&801d8a7&0&UID12615", "1": "DELD146-4&801d8a7&0&UID8263" }, "slow_application_identifiers": [ { "kind": "Exe", "id": "firefox.exe", "matching_strategy": "Equals" }, { "kind": "Exe", "id": "zen.exe", "matching_strategy": "Equals" } ], "slow_application_compensation_time": 20, "remove_titlebar_applications": [] } ``` ### Hotkey Configuration .shell pwsh.exe # Reload whkd configuration # alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration # App shortcuts - these require shell to be pwsh / powershell # The apps will be focused if open, or launched if not open # alt + f : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox } # alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome } alt + q : komorebic close alt + m : komorebic minimize # Focus windows alt + h : komorebic focus left alt + j : komorebic focus down alt + k : komorebic focus up alt + l : komorebic focus right alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [ alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ] # Move windows alt + shift + h : komorebic move left alt + shift + j : komorebic move down alt + shift + k : komorebic move up alt + shift + l : komorebic move right alt + shift + return : komorebic promote # Stack windows alt + left : komorebic stack left alt + down : komorebic stack down alt + up : komorebic stack up alt + right : komorebic stack right alt + oem_1 : komorebic unstack # oem_1 is ; alt + oem_4 : komorebic cycle-stack previous # oem_4 is [ alt + oem_6 : komorebic cycle-stack next # oem_6 is ] # Resize alt + oem_plus : komorebic resize-axis horizontal increase alt + oem_minus : komorebic resize-axis horizontal decrease alt + shift + oem_plus : komorebic resize-axis vertical increase alt + shift + oem_minus : komorebic resize-axis vertical decrease # Manipulate windows alt + t : komorebic toggle-float alt + shift + f : komorebic toggle-monocle # Window manager options alt + shift + r : komorebic retile alt + p : komorebic toggle-pause # Layouts alt + x : komorebic flip-layout horizontal alt + y : komorebic flip-layout vertical # Workspaces alt + 1 : komorebic focus-workspace 0 alt + 2 : komorebic focus-workspace 1 alt + 3 : komorebic focus-workspace 2 alt + 4 : komorebic focus-workspace 3 alt + 5 : komorebic focus-workspace 4 alt + 6 : komorebic focus-workspace 5 alt + 7 : komorebic focus-workspace 6 alt + 8 : komorebic focus-workspace 7 # Move windows across workspaces alt + shift + 1 : komorebic move-to-workspace 0 alt + shift + 2 : komorebic move-to-workspace 1 alt + shift + 3 : komorebic move-to-workspace 2 alt + shift + 4 : komorebic move-to-workspace 3 alt + shift + 5 : komorebic move-to-workspace 4 alt + shift + 6 : komorebic move-to-workspace 5 alt + shift + 7 : komorebic move-to-workspace 6 alt + shift + 8 : komorebic move-to-workspace 7 ### Output of komorebic check  Per318   ~   29ms⠀   komorebic check   pwsh   100  09:42:14  No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Per318 Looking for configuration files in C:\Users\Per318 Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\Per318\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag  Per318   ~   643ms⠀  
adam added the bugcannot-reproducei-will-not-work-on-thiskomorebic labels 2026-01-05 14:51:32 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jan 23, 2025):

This is the only report I've had of this issue and I've not been able to reproduce this yet

@LGUG2Z commented on GitHub (Jan 23, 2025): This is the only report I've had of this issue and I've not been able to reproduce this yet
Author
Owner

@khaneliman commented on GitHub (Feb 13, 2025):

Just trying to setup komorebi again after not using for a long time. Saw you had a bar feature now, but it doesn't seem to launch for me with the bar_config in komorebi.json

komorebic start --bar --whkd                              
Start-Process 'komorebi.exe' -WindowStyle hidden
Waiting for komorebi.exe to start...Started!

if (!(Get-Process whkd -ErrorAction SilentlyContinue))
{
  Start-Process whkd -WindowStyle hidden
}

Start-Process "komorebi-bar" '"--config" "$env:KOMOREBI_CONFIG_HOME\komorebi.bar.json"' -WindowStyle hidden

Thank you for using komorebi!

komorebic manages windows and i can use my whkd hotkeys, but bar never appears.

If i remove the configuration line from my config. It loads.

EDIT: Adding the line back but replacing $env:KOMOREBI_CONFIG_HOME with the path from the env variable itself fixed it not launching. So it seems komorebic doesn't know the environment variable.

@khaneliman commented on GitHub (Feb 13, 2025): Just trying to setup komorebi again after not using for a long time. Saw you had a bar feature now, but it doesn't seem to launch for me with the bar_config in komorebi.json ```bash komorebic start --bar --whkd Start-Process 'komorebi.exe' -WindowStyle hidden Waiting for komorebi.exe to start...Started! if (!(Get-Process whkd -ErrorAction SilentlyContinue)) { Start-Process whkd -WindowStyle hidden } Start-Process "komorebi-bar" '"--config" "$env:KOMOREBI_CONFIG_HOME\komorebi.bar.json"' -WindowStyle hidden Thank you for using komorebi! ``` komorebic manages windows and i can use my whkd hotkeys, but bar never appears. If i remove the configuration line from my config. It loads. EDIT: Adding the line back but replacing `$env:KOMOREBI_CONFIG_HOME` with the path from the env variable itself fixed it not launching. So it seems `komorebic` doesn't know the environment variable.
Author
Owner

@LGUG2Z commented on GitHub (Feb 13, 2025):

$env should be $Env ^

@LGUG2Z commented on GitHub (Feb 13, 2025): $env should be $Env ^
Author
Owner

@khaneliman commented on GitHub (Feb 13, 2025):

$env should be $Env ^

Doh! Thanks. That was it lol. Looks like OP was doing the same thing.

@khaneliman commented on GitHub (Feb 13, 2025): > $env should be $Env ^ Doh! Thanks. That was it lol. Looks like OP was doing the same thing.
Author
Owner

@LGUG2Z commented on GitHub (Feb 13, 2025):

I'm glad it was a quick fix! If you end up using komorebi at work please make sure to get your employer to purchase or reimburse you for an individual commercial use license: https://lgug2z.com/software/komorebi

@LGUG2Z commented on GitHub (Feb 13, 2025): I'm glad it was a quick fix! If you end up using komorebi at work please make sure to get your employer to purchase or reimburse you for an individual commercial use license: https://lgug2z.com/software/komorebi
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#556