[BUG]: Komorebi workspace-rules still not working despite trying #1212 #570

Closed
opened 2026-01-05 14:51:39 +01:00 by adam · 1 comment
Owner

Originally created by @cminglok on GitHub (Jan 27, 2025).

Summary

https://github.com/user-attachments/assets/2cb6af28-67eb-463e-a21a-23c4413f3fb4

There is no error in log, but the VNC Viewer.exe, Code.exe just didn't move to the specified monitor workspace.

Version Information

$ komorebic --version
komorebic 0.1.34
branch:master
commit_hash:15e443a4
build_time:2025-01-26 00:57:07 +00:00
build_env:rustc 1.84.0 (9fc6b4312 2025-01-07),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.33/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 2,
  "default_container_padding": 1,
  "border": true,
  "border_width": 6,
  "border_offset": -1,
  "border_colours": {
    "single": "#42a5f5",
    "stack": "#00a542",
    "monocle": "#ff3399",
    "unfocused": "#808080"
  },
  "stackbar": {
    "height": 60,
    "mode": "OnStack",
    "tabs": {
      "width": 30
    }
  },
  "manage_rules": [
    {
      "kind": "Title",
      "id": "VNC Viewer",
      "matching_strategy": "Equals"
    }
  ],
  "tray_and_multi_window_applications": [
    {
      "kind": "Title",
      "id": "VNC Viewer",
      "matching_strategy": "Equals"
    }
  ],
  "monitors": [
    {
      "workspaces": [
        {
          "name": "1. Browser",
          "layout": "BSP",
          "workspace-rules": [
              {
                "id": "msedge.exe",
                "kind": "Exe",
                "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "2. Terminal",
          "layout": "VerticalStack",
          "workspace-rules": [
              {
                "id": "mintty.exe",
                "kind": "Exe",
                "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "3. Remote",
          "layout": "BSP",
          "workspace-rules": [
              {
                "id": "VNC Viewer.exe",
                "kind": "Exe",
                "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "4. Code",
          "layout": "BSP",
          "workspace-rules": [
              {
                "id": "Code.exe",
                "kind": "Exe",
                "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "5. Document",
          "layout": "BSP"
        },
        {
          "name": "6. Social",
          "layout": "Grid"
        },
        {
          "name": "7. Music",
          "layout": "RightMainVerticalStack"
        }
      ]
    },
    {
      "workspaces": [
        {
          "name": "1. Browser_1",
          "layout": "BSP"
        },
        {
          "name": "2. Terminal_1",
          "layout": "VerticalStack"
        },
        {
          "name": "3. Remote_1",
          "layout": "BSP"
        },
        {
          "name": "4. Code_1",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "5. Document_1",
          "layout": "BSP"
        },
        {
          "name": "6. Social_1",
          "layout": "Grid"
        },
        {
          "name": "7. Music_1",
          "layout": "RightMainVerticalStack"
        }
      ]
    }
  ]
}

Hotkey Configuration

default

Output of komorebic check

$ komorebic log
2025-01-27T03:19:02.065577Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2025-01-27T03:19:02.122916Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:02.137405Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:focus_container{idx=2}: komorebi::workspace: focusing container
2025-01-27T03:19:02.147071Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:02.199389Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2025-01-27T03:19:02.224909Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:02.241013Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:02.253168Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:focus_container{idx=2}: komorebi::workspace: focusing container
2025-01-27T03:19:02.280507Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2025-01-27T03:19:04.552145Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: .gitignore - adv_ibir_master - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2025-01-27T03:19:18.112324Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:18.117567Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:focus_container{idx=3}: komorebi::workspace: focusing container
2025-01-27T03:19:18.125869Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:18.266939Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}: komorebi::process_event: processed: (hwnd: 659538, title: VNC Viewer, exe: VNC Viewer.exe, class: #32770)
2025-01-27T03:19:18.278944Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:18.287470Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:18.293476Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:focus_container{idx=3}: komorebi::workspace: focusing container
2025-01-27T03:19:18.305024Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}: komorebi::process_event: processed: (hwnd: 659538, title: VNC Viewer, exe: VNC Viewer.exe, class: #32770)
2025-01-27T03:19:24.598159Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_monitor{idx=1}: komorebi::window_manager: focusing monitor
2025-01-27T03:19:24.619939Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:24.631383Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:24.644682Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_container{idx=0}: komorebi::workspace: focusing container
2025-01-27T03:19:24.684691Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}: komorebi::process_event: processed: (hwnd: 724052, title: OBS 31.0.0 - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt663QWindowIcon)
2025-01-27T03:19:32.981578Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2025-01-27T03:19:32.989747Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2025-01-27T03:19:32.996385Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_window{idx=0}: komorebi::container: focusing window
2025-01-27T03:19:33.000565Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_container{idx=1}: komorebi::workspace: focusing container
2025-01-27T03:19:33.011840Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}: komorebi::process_event: processed: (hwnd: 134430, title: /cygdrive/c/Users/CMINGLOK                                                  , exe: mintty.exe, class: mintty)
Originally created by @cminglok on GitHub (Jan 27, 2025). ### Summary https://github.com/user-attachments/assets/2cb6af28-67eb-463e-a21a-23c4413f3fb4 There is no error in log, but the VNC Viewer.exe, Code.exe just didn't move to the specified monitor workspace. ### Version Information $ komorebic --version komorebic 0.1.34 branch:master commit_hash:15e443a4 build_time:2025-01-26 00:57:07 +00:00 build_env:rustc 1.84.0 (9fc6b4312 2025-01-07),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.33/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 2, "default_container_padding": 1, "border": true, "border_width": 6, "border_offset": -1, "border_colours": { "single": "#42a5f5", "stack": "#00a542", "monocle": "#ff3399", "unfocused": "#808080" }, "stackbar": { "height": 60, "mode": "OnStack", "tabs": { "width": 30 } }, "manage_rules": [ { "kind": "Title", "id": "VNC Viewer", "matching_strategy": "Equals" } ], "tray_and_multi_window_applications": [ { "kind": "Title", "id": "VNC Viewer", "matching_strategy": "Equals" } ], "monitors": [ { "workspaces": [ { "name": "1. Browser", "layout": "BSP", "workspace-rules": [ { "id": "msedge.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "2. Terminal", "layout": "VerticalStack", "workspace-rules": [ { "id": "mintty.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "3. Remote", "layout": "BSP", "workspace-rules": [ { "id": "VNC Viewer.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "4. Code", "layout": "BSP", "workspace-rules": [ { "id": "Code.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "5. Document", "layout": "BSP" }, { "name": "6. Social", "layout": "Grid" }, { "name": "7. Music", "layout": "RightMainVerticalStack" } ] }, { "workspaces": [ { "name": "1. Browser_1", "layout": "BSP" }, { "name": "2. Terminal_1", "layout": "VerticalStack" }, { "name": "3. Remote_1", "layout": "BSP" }, { "name": "4. Code_1", "layout": "UltrawideVerticalStack" }, { "name": "5. Document_1", "layout": "BSP" }, { "name": "6. Social_1", "layout": "Grid" }, { "name": "7. Music_1", "layout": "RightMainVerticalStack" } ] } ] } ``` ### Hotkey Configuration default ### Output of komorebic check ``` $ komorebic log 2025-01-27T03:19:02.065577Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2025-01-27T03:19:02.122916Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:02.137405Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:focus_container{idx=2}: komorebi::workspace: focusing container 2025-01-27T03:19:02.147071Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:02.199389Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2025-01-27T03:19:02.224909Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:02.241013Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:02.253168Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}:focus_container{idx=2}: komorebi::workspace: focusing container 2025-01-27T03:19:02.280507Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2025-01-27T03:19:04.552145Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1182496}: komorebi::process_event: processed: (hwnd: 1182496, title: .gitignore - adv_ibir_master - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2025-01-27T03:19:18.112324Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:18.117567Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:focus_container{idx=3}: komorebi::workspace: focusing container 2025-01-27T03:19:18.125869Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:18.266939Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=659538}: komorebi::process_event: processed: (hwnd: 659538, title: VNC Viewer, exe: VNC Viewer.exe, class: #32770) 2025-01-27T03:19:18.278944Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:18.287470Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:18.293476Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}:focus_container{idx=3}: komorebi::workspace: focusing container 2025-01-27T03:19:18.305024Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=659538}: komorebi::process_event: processed: (hwnd: 659538, title: VNC Viewer, exe: VNC Viewer.exe, class: #32770) 2025-01-27T03:19:24.598159Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_monitor{idx=1}: komorebi::window_manager: focusing monitor 2025-01-27T03:19:24.619939Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:24.631383Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:24.644682Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}:focus_container{idx=0}: komorebi::workspace: focusing container 2025-01-27T03:19:24.684691Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=724052}: komorebi::process_event: processed: (hwnd: 724052, title: OBS 31.0.0 - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt663QWindowIcon) 2025-01-27T03:19:32.981578Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2025-01-27T03:19:32.989747Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2025-01-27T03:19:32.996385Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_window{idx=0}: komorebi::container: focusing window 2025-01-27T03:19:33.000565Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}:focus_container{idx=1}: komorebi::workspace: focusing container 2025-01-27T03:19:33.011840Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=134430}: komorebi::process_event: processed: (hwnd: 134430, title: /cygdrive/c/Users/CMINGLOK                                                  , exe: mintty.exe, class: mintty) ```
adam added the bug label 2026-01-05 14:51:39 +01:00
adam closed this issue 2026-01-05 14:51:39 +01:00
Author
Owner

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

Not a bug - you have a typo in your config, workspace-rules (with a -) instead of workspace_rules (with a _).

@LGUG2Z commented on GitHub (Jan 27, 2025): Not a bug - you have a typo in your config, `workspace-rules` (with a `-`) instead of `workspace_rules` (with a `_`).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#570